Skip to content

notalent2code/backend-data-engine

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Indigo Data Engine REST API

Docker commands

# build docker image
$ docker build -t rihlan24/indigo_data_engine .

# tag docker image
$ docker tag indigo_data_engine:latest rihlan24/indigo_data_engine:latest

# push docker image
$ docker push rihlan24/indigo_data_engine:latest

# pull docker image
$ docker pull rihlan24/indigo_data_engine:latest

# stop docker image
$ docker compose rm -s -f

# run docker image
$ docker compose up -d

# backup postgres database
$ docker exec -t db pg_dumpall -c -U postgres > dump_data_engine_`date +%d-%m-%Y"_"%H_%M_%S`.sql

# restore postgres database
$ cat dump_file_name.sql | docker exec -i db psql -U postgres

Installation

$ pnpm install

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Test

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

Misc

# identify test db port process id
$ sudo lsof -i :5433 -S

# kill test db process
$ sudo kill ${id}

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages