The SportSee app measures your performance and fitness indicators so you can track your physical activity
Alexandre Bidaud
- JS
- CSS
- React
- D3.js
- NodeJS (version 12.18)
- Yarn
- Optional User data API
If you are working with several versions of NodeJS, we recommend you install nvm. This tool will allow you to easily manage your NodeJS versions.
-
Clone it on your computer :
- github -> green code button -> clone -> copy link
* In your terminal
git clone https://github.com/AlxBDo/BidaudAlexandre_12_02112021.git
-
npm
installation :npm install
-
yarn
installation :npm install yarn
-
Optional
User data API
installation : API Readme.md . If you don't use the API the app will only work with mocked data -
Lunch the project :
yarn start
To retrieve user information, the project uses the endpoints below:
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.).
http://localhost:3000/user/12/performance
- Retrieves the performance of the user with id 12http://localhost:3000/user/18
- Retrieves user 18's main information.
The documentation can be viewed by following the link below : documentation