Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.57 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.57 KB

Cobra Wing bot V2.0 - Work in progress ⏳

📌 Requirements and tips:

🐳 Docker for Postgres database

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

🚀 To start:

# Install node dependencies
yarn

# Run migrations
yarn typeorm migration:run

# Run in development mode
yarn dev:server

🤓 Dev support stuffs...

Migration commands:

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