This is a blog app that stores workout exercices on a mongodb database. For the moment I havent included edit functionality.
- I use validator package on backend to validate the data received from the client, and throw feedback to the user in case there are errors.
- For authorization I am setting a JWT token on the request headers, which is verified on the backend to allow users to do add or delete workouts.
Remember to configure your mongodb database and make sure to have an .env file on backend directory containing the following:
- MONGO_URI Add a /workouts at the end if like I did (optional)
- PORT You can use 5000 on backend and 3000 on frontend side.
- SECRET