Docker image and run
# Postgres
docker run --name cw_postgres -e POSTGRES_USER=docker -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
# Redis
docker run --name cw_redis -p 6379:6379 -d -t redis:alpine
# Install node dependencies
yarn
# Run migrations
yarn typeorm migration:run
# Run in development mode
yarn dev:server
Command | Description |
---|---|
yarn typeorm migration:run | To run migrations |
yarn typeorm migration:create -n <migration_name> | To create a new migration |
yarn typeorm migration:show | To show all migrations executed |
yarn typeorm migration:revert | To revert migration |