- Run
npm install
to install the dependencies in all linked apps. - Install docker desktop https://www.docker.com/products/docker-desktop/
- Create
.env
file in theapps/backend
directory usingapps/backend/src/utils/sample.env
and atest.env
file usingapps/backend/src/utils/test-sample.env
. - Run
npm run server
to start (or restart) the db and backend server on port 3001.- You can re-initialize the db on command line by running
npm run reinitialize-db -w apps/backend
. NOTE: THIS WILL DELETE ALL EXISTING DATA FROM THE DEV DATABASE. - You can connect to dev db on command line by running
npm run connect-dev-db -w apps/backend
- You can connect to test db on command line by running
npm run connect-test-db -w apps/backend
- You can re-initialize the db on command line by running
- Run
npm run seed-db
in order to seed the database (this will reset all data stored in the db). - Run
npm run client
to start the frontend server on port 3000.
Other npm scripts are defined in ./package.json
, apps/backend/package.json
and apps/frontend/package.json
.
- List the container by running
docker ps
and delete the containers bydocker container rm -f <container-name>
. - List the volumes by running
docker volume ls
and delete the associated volume bydocker volume rm -f <volume-name>
. - Run
npm run start-db -w apps/backend
.