This project is the 12th project of OpenClassrooms JavaScript - React Developer Program.
The objective is to create a React project populated with graphs created with a 3rd-party library.
🔼 Back to the Table of Contents
Here is the stack used in the project :
🔼 Back to the Table of Contents
The project is made up of :
- 🌅 Front-end : Client
- For the time being, only contain the Profile, 400 & 500 pages
- 🌇 Back-end : Server
- For the time being, only contain 2 users: 12 & 18
The package.json
file at the root of the project is mainly there to manage both parts of the app from the root.
Some fake user data were added to the client-end in dev mode.
Here is a list of the mocked users :
User Id | Name | Data | URL |
---|---|---|---|
1 | Thierry Henri | No | http://localhost:4242/profile/1 |
12 | Karl Dovineau | Yes | http://localhost:4242/profile/12 |
18 | Cecilia Ratorez | Yes | http://localhost:4242/profile/18 |
Here is a list of the real users :
User Id | Name | Data | URL |
---|---|---|---|
12 | Karl Dovineau | Yes | http://localhost:3333/profile/12 |
18 | Cecilia Ratorez | Yes | http://localhost:3333/profile/18 |
To start the website, do the following :
- Open a terminal
- Place yourself in the project folder with
cd ./oc-p12-sportsee
- To start the project, either run :
npm run dev
: to start the front-end & back-end in dev mode (atlocalhost/4242
) with the mocked datanpm start
: to start the front-end & back-end (atlocalhost/3333
) with the real data- or
npm run demo
: to start the back-end, the front-end with the mocked data and another version of the front-end with the real data
🎉 Now, the project is up and running !
🗒️ Notes
All listed commands install the overall project dependencies (root project, client & server).