Skip to content

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

75 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend service

Technical Approach

Core

Testing

Logger

Payment Gateway

Pubsub

Message Streaming

ORM/ODM

Database

Installation

npm ci

Start dependency containers

docker-compose up -d postgres mongo kafka-admin rabbitmq

Setup mongo in cluster mode

docker-compose exec -it mongo mongosh --eval 'rs.initiate({ _id: "mongo-set", members: [{ _id: 0, host: "mongo:27017" }]})'

Run service

npm run start:dev
npm run start:prod

Run test

npm test
npm run test:e2e
npm run test:bvt

Run DB migration

Postgres

# generate new migration file
npm run migration:typeorm:generate --db=<db> ---name=<name>

# revert migration
npm run migration:typeorm:revert --db=<db>

MongoDB

# generate new migration file
npm run migration:mongo:generate --db=<db> ---name=<name>

# run migration
npm run migration:mongo:up --db=<db>

# revert migration
npm run migration:mongo:down --db=<db> -- --last  #Undo the last applied migration
npm run migration:mongo:down --db=<db> -- --all   #Undo all applied migrations

# check migration status
npm run migration:mongo:status --db=<db>

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages