The SportSee app displays the personal dashboard of a user. The user has access to several graphs such as:
- Daily stats (weight and burnt calories)
- Average session's length (duration)
- Performance (multi-criteria)
- Overall score
- Agregated food consumption (lipids, carbs, proteines, etc.)
Preliminary note: this project uses a micro back-end API. You can fork that repository and run it locally on port 3000 before starting the SportSee app. You are also free to use Docker.
If you are running the micro API somewhere else than "http://localhost:3000" you'll need to update the base URL in
src/services/services.js
Node : v16.13.2 IDE : VS Code 2019
cd open-classrooms_project12
npm install
npm start
If you already run the back-end API on port 3000 the console will inform you that port 3000 is already used and will ask you if it can use another port (usually port 3001 if free).
Usually you will be automatically redirected to the app. If not, open your favourite browser and go to http://localhost:3001 to view it running.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
You may serve it with a static server:
serve -s build
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.