NOTE: Unless stated otherwise, every command is to be executed from the root of the project.
This project is using a feature of Yarn called Yarn Workspaces, so using Yarn is required.
yarn [install]
In the backend
directory, run:
cd backend
yarn start
In the frontend
directory, run:
cd frontend
yarn start
yarn build
This script will run the build
scripts of backend
and frontend
and copy the results to a build
directory at the root of the project.
yarn start
To use PM2 you need to have it globally installed:
yarn global add pm2
or:
npm i -g pm2
After you've got it installed, run:
yarn start:pm2
The configuration for PM2 is found in pm2.json
.