- Install dependencies
yarn install --frozen-lockfile
- Create
.env
file
cp example.env .env
-
Fill config for database, mail service, minIO, Redis and Firebase to
.env
file. -
Build source
yarn build
- Run back-end service
yarn start
-
Create a
.env
file from the.env.example
filecp example.env .env
Fill config for database, mail service, minIO, Redis and Firebase.
-
Install package
npm ci --frozen-lockfile
or with yarn
yarn install --frozen-lockfile
-
Build source
npm run build
or with yarn
yarn build
-
Environment
node v16+
-
Docker commands
-
Build & run all container
docker-compose up --build
-
Run all container
docker-compose up
-
Run a container
docker-compose up <service_name>
-
Exec
docker exec -it <service_name> sh
-
-
Generate migration file with Windows
npm run migration:generate-win --name=<file-name>
or with Linux / MacOS
npm run migration:generate-mac --name=<file-name>
-
Running migration
npm run migration:run
or with yarn
yarn migration:run
-
Revert migration
npm run migration:revert
or with yarn
yarn migration:revert