Skip to content

Bitshala/admin-backend

Repository files navigation

Admin Backend

Description

This is a NestJS-based backend application for the Bitshala platform.

Prerequisites

Running the Application

Install dependencies:

npm install

Configuration

Ensure 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 application

  1. Start the database using Docker: docker compose up -d
  2. 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
  3. Run the database migrations: npm run typeorm:migration:run
  4. Start the application in development mode: npm run start:dev

Stop the application

  1. Stop the application: Ctrl + C
  2. Stop the database: docker compose down
  3. Remove Docker volumes (if needed): docker compose down -v

Useful Commands

  • Run migrations: npm run typeorm:migration:run
  • Revert migrations: npm run typeorm:migration:revert
  • Generate a new migration: npm run typeorm:migration:generate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages