- Go to app directory
cd packages/frontend
- Setup
packages/frontend/.env
file with JWT token (example file:packages/frontend/.env.example
) - Install dependencies
npm install
- Start dev server
npm run start
- Done
- Go to app directory
cd packages/backend
- Setup
packages/backend/.env
file with env variables (example file:packages/backend/.env.example
) - Install dependencies
npm install
- Start dev server
npm run dev
- Done
-
Install Heroku CLI
-
Login - run:
heroku login
-
Run commands:
heroku create -a {app-name} heroku buildpacks:add -a {app-name} {buildpack} heroku buildpacks:add -a {app-name} https://github.com/lstoll/heroku-buildpack-monorepo -i 1 heroku config:set -a {app-name} APP_BASE={app-path} git remote add heroku-{app-name} https://git.heroku.com/{app-name}.git git push heroku-{app-name} master
{buildpack}
=mars/create-react-app
{buildpack}
=heroku/nodejs
Also set env variables:
heroku config:set {env-variable}={value}
Variables are in
package/backend/.env.example