Skip to content

agbanusi/delivery-system-backend

Repository files navigation

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

About

A food delivery system optimized backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published