- Run
npm installto install the dependencies in all linked apps. - Install docker desktop https://www.docker.com/products/docker-desktop/
- Create
.envfile in theapps/backenddirectory usingapps/backend/src/utils/sample.envand atest.envfile usingapps/backend/src/utils/test-sample.env. - Run
npm run serverto 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-dbin order to seed the database (this will reset all data stored in the db). - Run
npm run clientto 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 psand delete the containers bydocker container rm -f <container-name>. - List the volumes by running
docker volume lsand delete the associated volume bydocker volume rm -f <volume-name>. - Run
npm run start-db -w apps/backend.