Skip to content

Latest commit

 

History

History
85 lines (57 loc) · 1.48 KB

README.md

File metadata and controls

85 lines (57 loc) · 1.48 KB

Lamorak

A Smart Backend for Food Delivery App

Live for Fooood!!

Tech Stack

  • TypeScript
  • Node JS
  • Express JS,... or Fastify
  • SQL DB - MySql/MariaDB
  • TypeORM - Sql ORM
  • API Testing - Postman (can test with mocha or chai later on...)

What can it Do?

  • View Restaurants, Dishes, Menus Nearby you (Same city/address)
  • Filter Dishes By Name, price Range and Restaurant's rating
  • Images of the Dish (with multer)
  • Add To Cart
  • Restaurant's Discounts
  • Order Dishes
  • Rate and Give Restaurant's Reviews
  • Same City Delivery Person/Boy
  • Guided by Admin
  • Cancel Order
  • Coupon Codes
  • Order Stages, Types (COD, Net_Banking)

DB Migrate

npx ts-node ./node_modules/.bin/typeorm migration:generate -n finalDB

ER Diagram

https://drawsql.app/arkaraj/diagrams/lamorak

Postman Collections

https://www.getpostman.com/collections/fc87e3353fa60710154b

Full Postman Routes (Which are Tested Till Now):

Routes Documentation: (Some Admin Routes are not mentioned here)

https://documenter.getpostman.com/view/8802598/TzY4gFne

Notes

  • Index "city, Addressid" field in Address Entity to fetch rows easily

To Run It Locally

# Install all Dependencies
$ npm install

# Create .env file
touch .env

# Convert Typescript Files to Js for Production
$ npm run build

# To Run it in Development Itself
$ npm run dev

# To Run in Production
$ npm start
  • Contents in .env file
SQL_Username =
SQL_Password =
SQL_Database =
SECRET =

Runs on Localhost port: 3002