Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Kalshone/book-project

 
 

Logo

Build Status Code coverage Slack

Book tracker web app made with Spring Boot and React (Typescript).

image

The image above is from our mockup designs, so this may look slightly different to the app. If major changes are made, we will upload a new image.

Getting started locally

Prerequisites:

First, clone the repository (you'll need to fork first and then clone your fork if you're contributing).

Next, start Docker engine (Linux) or Docker desktop (macOS or Windows). If you're using an Apple silicon chip, you'll need to uncomment this line.

Running the frontend

  1. Navigate to the frontend/ directory in a terminal
  2. Run docker-compose up --build to build and start the frontend container
  3. Open localhost:3000 once the development server has started

Run Books API (optional)

You may want to also want to run our Books API to avoid seeing an error on the search page.

Running the database

  1. Navigate to the backend/ directory in a terminal
  2. Start the MySQL database using docker-compose up -d mysql phpmyadmin
    • May need to add sudo to this command
    • phpmyadmin is optional

Access database (optional)

To access the MySQL database when docker-compose is running with the phpmyadmin container:

  1. Go to http://localhost:8081/
  2. Log in with the details below:
    • Username: root
    • Password: rootpassword
  3. Click on connect

Alternatively, you can access the database inside IntelliJ Ultimate or DataGrip.

Running the backend

Note: The backend depends on the database, so please ensure you have started our MySQL database with the instructions in the section above.

You can either run BookProjectApplication.java from your IDE (import as a Maven project) or run the steps below in a terminal:

  1. Build the project in the backend/ directory using ./mvnw clean install (Unix) or mvnw.cmd clean install (Windows)
  2. Start the application using java -jar book-app/target/book-app-0.2.0.jar

Log in with our test user

When running the frontend and backend, or only the backend, you can use the following test user:

If you're running the backend, you will need a JWT token for subsequent requests after logging in or creating an account; see our connecting to the backend wiki page.

Contributing

If you wish to contribute (thanks!), please first see the contributing document.

We work hard to make our project approachable to everyone -- from those new to open-source looking to make their first contribution to seasoned developers.

Backend: fixing Lombok errors

You may find lots of errors for things like the log statements, or the entities not having constructors. You can find instructions on fixing this for IntelliJ and Eclipse in our troubleshooting wiki page. Other common errors and solutions are also on the troubleshooting page.

Help

If you need help with anything, we'll be happy to help you over a GitHub Q&A discussion. Alternatively, feel free to chat with us on the #book-project channel on our Slack workspace.

When asking for help on Slack, we always recommend asking on our #book-project channel, rather than contacting a maintainer directly. This is so that others can offer help and the answer may help someone else.

Further information

For more information, such as a roadmap and the project's underlying principles, see the Book Project wiki.

To see a list of the open-source software we use, refer to our Acknowledgements file

About

Book platform for book lovers (web app)

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 76.5%
  • TypeScript 17.1%
  • CSS 4.1%
  • JavaScript 1.6%
  • HTML 0.6%
  • Dockerfile 0.1%