bootcampAvenue project
-
Create a
.envinside/breviews-clientandnodemon.jsonfile inside/brevews-backend -
Inside
.envin/breview-clientput thisAPI_PROD_URL=https://ba-backend.herokuapp.com/api API_DEV_URL=http://localhost:5000/api -
In development inside
nodemon.jsonin/breviews-backendwrite:{ "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.jsonfile indevelopment. -
In
productionkeys 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