dev:
- run command <npm ci --legacy-peer-deps>
- run command in root directory <cp .env.example .env>
- set variables to .env (not required)
- create folder in root directory docker-entrypoint-initdb.d
- create file in this folder create-db.sql
- paste this code into the file create-db.sql: CREATE DATABASE telegram_landing; CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
- run command <docker-compose up --build -d> (download docker/docker desktop if you don't have it)
- run command in root directory <npx prisma generate --schema=./prisma/schema.prisma>
- run command
- open in browser http://[::1]:5100/
- npx prisma migrate dev - for dev
- npx prisma migrate prod - for prod
- npx prisma migrate dev --name - create new migration
Current branch - main
Postman REST API: https://documenter.getpostman.com/view/11224560/2s8YzMXk2Z Postman WS API: in progress