lorelpayano / Project-3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IronPlate

Start Server

cd backend/
npm i
nodemon

Start client

cd frontend/
npm i
npm start

Deploy DB

sign in with Atlas.
Get connection string and add it to .env file. MONGDB_URI = ...

Deploy to Heroku

heroku create
git add .
git commit -m 'deploying'
git push
git push heroku master
add convig var for MONGDB_URI in heroku dashboard

Deploy to Netlify

Login to Netlify & Select the repo
In deploy settings build command write: cd ./frontend && npm install && npm run build
In Publish Directory write: frontend/build
Add an environment variable: CI = false
In backend/app.js add client url generated by Netlify
In frontend/src/services/index.js add heroku url as a production endpoint

About


Languages

Language:JavaScript 71.4%Language:CSS 24.0%Language:HTML 4.6%