# Check Node.js version
node --version
- Fork this repo
- Clone the repo onto your computer
- Open a terminal window in the cloned project
- Run the following commands:
# Install dependencies
npm install
# Start local dev server
npm start
# Build the app for production
npm run build
You can switch from mocked data to API data in your .env
.
# .env / default value / API data
REACT_APP_MOCK_ACTIVE=false
#.env / Mock Data
REACT_APP_MOCK_ACTIVE=true
This project includes four endpoints that you will be able to use:
- http://localhost:3001/ - Home page
- http://localhost:3001/{userId} - Dashboard page with all the charts for this user