Skip to content

ArgoN1ck/bull

Repository files navigation

Bull

Bull API

Table of Contents

Installation

To get started with Bull, you need to have any Linux distributions, Node.js and npm (Node Package Manager) installed on your machine.

  1. Clone the repository:
git clone https://github.com/ArgoN1ck/bull.git
  1. Navigate to the project directory:
cd bull
  1. Install the dependencies:
npm install
  1. Navigate to the devops directory
cd devops
  1. Install the dependencies:
npm install

Configuration

Before running the application, you need to set up the environment variables in .env file (devops/.env) :

NODE_ENV=development
HOST=0.0.0.0
PORT=3333

PSQL_HOST=localhost
PSQL_USERNAME=postgres
PSQL_PASSWORD=root
PSQL_DATABASE=postgres

REDIS_HOST=bull-redis
REDIS_PORT=6379

Running the app

To run the application, you need to navigate to devops directory.There are several options:

Development

To start the app in development mode with hot-reloads enabled:

npm run docker:dev:up

Production

To build and run the app in production mode:

npm run docker:prod:up

Database Management

Bull uses TypeORM and FlywayDB to run migrations. You can use the following commands to manage your database migrations:

Run migrations

npm run migration:run

Test

To run the tests navigate to devops folder, run dev or prod infrastructure and execute command:

npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published