bootcampAvenue project
-
Create a
.env
inside/breviews-client
andnodemon.json
file inside/brevews-backend
-
Inside
.env
in/breview-client
put thisAPI_PROD_URL=https://ba-backend.herokuapp.com/api API_DEV_URL=http://localhost:5000/api
-
In development inside
nodemon.json
in/breviews-backend
write:{ "env": { DATABASE_NAME: askme DATABASE_PASSWORD: askme DATABASE_USER: askme } }
- from breviews-backend:
- $
npm install
- $
npm run install:both
- $
npm run dev
-
if you new to frontend please use webpack and env variables carefully.
-
Messing them up would mess up whole development and production code 🙂
-
There are several advantages in separating development and production modes
- Ex: caching, logging, security etc.
-
Currently on backend secret keys coming from
nodemon.json
file indevelopment.
-
In
production
keys set onheroku dashboard.
-
Change this behavior to store all prod and dev keys in local and use of libraries like “node-config”, “dotenv” etc.
- keep copyright year 2020
- login system
- show all bootcamps (Leave a Review button is not intuitive)
- server side filter etc for top and remote bootcamps
- remove Support page
- improve Search
- improve rating system
Leave a Reply