Skip to content

HuynhKhoa1601/scalabay-backend

Repository files navigation

Scalapay Full Stack Project

Backend

Scalapay API repository built with Nest Framework

Tech Stacks

  • NestJS
  • NodeJS
  • Express
  • Typescript
  • TypeORM
  • Jest
  • Docker
  • Eslint
  • Prettier
  • Swagger
  • PostgreSQL

Prerequisites

  • nodejs 18
  • postgres:14
  • docker
  • docker-compose
  • npm

Installation

$ npm install

Settting up the environment variables

  • Copy the file .env.example and make the new file .env
  • Insert the values for the variables in the .env file

Running with docker-compose (need to have docker and docker-compose installed)

# development
$ docker-compose up

Database Management

You can use database management tools like TablePlus or PgAdmin 4 to connect to your database, run SQL queries, and manage your data more easily.

Import the data dump into your PostgreSQL database

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Swagger API Documentation

Go to ${BaseURL}/api to view all the API documentations

Open http://localhost:5000 to run the backend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published