Openclassrooms Front-End | P12 | VERSION 1.0 |
with Create React App, Sass, Recharts, JsDoc & better-doc
live app demo on Netlify & live documentation here
- Download or clone the back-end's repository :
git clone https://github.com/ebz8/P9-front-end-dashboard.git
- Install dependencies :
# NPM
npm install
# Yarn
yarn install
- Launch back-end on port 3000 (default port) :
# NPM
npm run start
# Yarn
yarn dev
- Clone this repository :
git clone https://github.com/ebz8/ElodieBoinZanchi_12_050222-.git
- Install dependencies:
# NPM
npm install
# Yarn
yarn install
- Launch dev server on port 3001 :
# NPM
npm start
-
Front-end is now rendered at URL
http://localhost:3001
with mocked data. If you want to switch to real backend data, go tomy-app/src/data/config.js
(this file) and setcurrentUrl
constant fromurlMockAPI
tourlAPI
. -
You also can build a production version and serve it with a static server :
# NPM
npm run build
npm run serve
# Yarn
yarn global add serve
serve -s build