Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.51 KB

README.md

File metadata and controls

63 lines (45 loc) · 1.51 KB

Sample Food Delivery Backend REST API

uses Typescript, Nest.js and postgresql with famous library Objectionjs and Knex.

Installation

Install dependencies and devDependencies:

$ yarn install

Configuration

Configuration environment and change basic credentials:

$ cp .env.example .env

Create Database

$ pgcli --user postgres
-> password:- ****
$ CREATE DATABASE food_delivery

Start Server

Start the nest server:

$ yarn start

Start the nest development server:

$ yarn start:dev

Useful npm/yarn commands

  • yarn build - Transpile TypeScript code
  • yarn start - Run application
  • yarn start:dev - Run application in development mode
  • yarn run format - Formate code with pritter
  • yarn run lint - Run for typescript linting
  • yarn run migrate:make - Run for create migration with name of migration
  • yarn run migrate:latest - Run for migrate and create schema
  • yarn run migrate:rollback - Run for rollback batch migration

Docs & Community