Skip to content
/ backend Public

Backend functions for our app. Written using Nest.js

License

Notifications You must be signed in to change notification settings

Luftio/backend

Folders and files

NameName
Last commit message
Last commit date
Nov 24, 2022
Jan 28, 2021
Jan 18, 2022
Aug 2, 2021
Aug 2, 2021
Jan 28, 2021
Jan 28, 2021
Jan 18, 2022
May 16, 2023
May 16, 2023
Jan 28, 2021
Aug 2, 2021
Aug 2, 2021
Jan 28, 2021
Jan 28, 2021

Repository files navigation

Luftio Backend

Installation

$ npm install

Running the app

The app expects the database to be running on localhost:5432.

To connect to the production database, use ssh -L5432:localhost:5432 [email protected]

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Deployment

First, connect to the correct server via ssh. Then run the following:

$ cd app-backend
$ git pull origin master
$ npm run build
$ pm2 restart app-backend