You have to run Backend and Frontend, to do it follow instructions in :
Backend > Readme.md
Frontend > Readme.md
This project includes four endpoints that you will be able to use:
http://localhost:3000/user/${userId}
- retrieves information from a user. This first endpoint includes the user id, user information (first name, last name and age), the current day's score (todayScore) and key data (calorie, macronutrient, etc.).http://localhost:3000/user/${userId}/activity
- retrieves a user's activity day by day with kilograms and calories.http://localhost:3000/user/${userId}/average-sessions
- retrieves the average sessions of a user per day. The week starts on Monday.http://localhost:3000/user/${userId}/performance
- retrieves a user's performance (energy, endurance, etc.).
-
Only two users have been mocked. They have userId 12 and 18 respectively.
-
http://localhost:5173/user/1
- u can use 1 or 2 shortcuts in URL when you are on the website.
http://localhost:3000/user/18
- Retrieves user 18's main information.http://localhost:3000/user/12/performance
- Retrieves the performance of the user with id 12