There are a lot of useful info in ./docs
.
- Basic information about the app you are building with screenshots.
- Tasks we what you to do.
- A ready-to-use Postman Collection.
- Copy
.env.example
>.env
- Run
docker compose run --rm npm install
- Fill
PROSPECT_API_KEY
,PROSPECT_BASE_URL
with given values. - Change ports in
.env
, if some of them are already taken. - Run
docker-compose up -d
This module uses workspaces to share modules between backend and frontend.
You have to add --workspace <dir>
to every npm
command.
npm i mysql2 --workspace packages/backend-nest
npm i sequelize --workspace packages/backend-express
npm i @mui/material @emotion/react @emotion/styled --workspace packages/frontend-react
There is a dev.sh
file that will help you to run command inside docker.
./dev up # Up docker stack
./dev down # Down docker stack
./dev logs # Check out app logs
./dev i # Install any package with npm inside docker container
./dev npm # Run any npm command inside docker container
Edit .env
and change COMPOSE_PROFILES
variable.
# before
COMPOSE_PROFILES=infra,backend-nest,frontend
# what you want
COMPOSE_PROFILES=infra,backend-express,frontend
Edit .env
and change COMPOSE_PROFILES
variable.
# before
COMPOSE_PROFILES=infra,backend-nest,frontend
# what you want
COMPOSE_PROFILES=infra
This will tell docker to only run MySQL and Redis.