-
Setup frontend (
http://localhost:3000/
orhttp://localhost:8000/
)cd frontend
npm install
npm run-script build
- add
.env
file with frontend environment variables
-
Setup backend (
http://localhost:8000/
)- Return to the root directory
cd ..
cd backend
npm install
- add
.env
file with backend environment variables
- Return to the root directory
-
Setup root
- Return to the root directory
cd ..
npm install
- Return to the root directory
- To run development environment
npm run dev
or - To run production environment
npm run start
NODE_ENV
- The environment type - example: "production"PORT
- The port that server.js runsJWT_KEY
- Secret used to generate and secure JWTsATLAS_URI
- URI to connect to MongoDB
REACT_APP_MAPBOX_API_KEY
- The MapBox API key