The following manual will help you setting up the environment:
- You need to have a running PostgreSQL database (set username and password of db in application.properties based on your postgresql configuration)
- Manually create calories database
- Start spring-boot backend located in calories-be
- You can use your IDE's options for this purpose
- Tables, relations and initial data will be created automatically once you start the application.
- Start the separate react application(widget) located
in invite-friend-widget folder, so it could be integrated within the main frontend application.
- Type yarn install && yarn start in console window or use IDE's options
- Start the main react application located in calories-fe.
- As in the step above, type yarn install && yarn start in console window or use IDE's options
- Once the application is started, you have two options to log in (you can register as well):
- Login as role USER:
- email: user@toptal.com or user2@toptal.com, password: user
- Login as role ADMIN:
- email: admin@toptal.com, password: admin
- Login as role USER:
- Enjoy the application! :)
- You can find all the endpoints used by the application after staring the backend on: