This is a NestJS-based backend application for the Bitshala platform.
npm installEnsure the config/dev.config.yaml file is properly configured for your environment.
An example configuration is provided in config/dev.config.example.yaml. You can copy this file to config/dev.config.yaml and modify it as needed.
Update the docker-compose.yml file if necessary.
- Start the database using Docker:
docker compose up -d - Export environment variables:
export DB_POSTGRES_DATABASE_NAME=bitshala;DB_POSTGRES_HOST=localhost;DB_POSTGRES_PASSWORD=password;DB_POSTGRES_PORT=5432;DB_POSTGRES_USERNAME=root - Run the database migrations:
npm run typeorm:migration:run - Start the application in development mode:
npm run start:dev
- Stop the application:
Ctrl + C - Stop the database:
docker compose down - Remove Docker volumes (if needed):
docker compose down -v
- Run migrations:
npm run typeorm:migration:run - Revert migrations:
npm run typeorm:migration:revert - Generate a new migration:
npm run typeorm:migration:generate