- if done cloning the repo
- go to the repo base directory and run:
npm install
- at repo base directory, run again
cd client && npm install
- if you change the port of the server, make sure to change the proxy in client
-
to change, just open
client/package.json
and change this... "proxy": "http://localhost:3003",
-
- to run the app just run with each own terminal
npm start
cd client && npm start
- open the
.env
in base directory and changeNODE_ENV
intoNODE_ENV=production
- generate a build directory in client
cd client && npm run build
- now try running the server only,
npm start
- Set your environment variables in heroku
- Go to heroku dashboard, create new app.
- after creating go to Deploy and Choose GitHub
- connect your github account and search your repo
- make sure to Enable Automatic Deploys
- In Manual Deploy Section select branch to deploy and select Deploy Branch