Code Monkey home page Code Monkey logo

ubereats-be's Introduction

Storybook

yarn storybook http://localhost:6006/?path=/story/example-introduction--page

Test

yarn test:v http://localhost:6006/?path=/story/example-introduction--page

Seed to New Elephantsql DB

npm run prisma:prod:migrate npm run prisma:seed

Run Server

npm run start:dev

Fix to DB

update prisma npm install prisma

Initial

npm install docker compose up -d npm run dev

Seed: npm run prisma:migrate npm run prisma:seed npx run dev

http://localhost:3001/graphql

Frontend: yarn install yarn dev

How to order.

User: Goto http://localhost:3000/auth/login login detail: [email protected] / password

Goto http://localhost:3000/client/store/1 Order a Pizza Speciale - Confirm Order Pushed to Order Site (http://localhost:3000/client/order/X) Status: "Pending"

Owner: (firefox) Goto http://localhost:3000/client/order/X Accept Order Order Cooked

Delivery: (chrome) Goto http://localhost:3000/auth/login login with [email protected] / password

Goto http://localhost:3000/driver/dashboard

Accept Challenge Picked Up / Order Delivered

Order #4 total: $115 Prepared By: BBQ House Deliver To: [email protected] Driver: [email protected] Status: Delivered Thank you for using Nuber Eats

User Entity:

  • id
  • createdAt
  • updatedAt
  • email
  • password
  • role(client|owner|delivery)

User CRUD:

  • Create Account
  • Log In
  • See Profile
  • Edit Profile
  • Verify Email

Restaurant CRUD:

  • Edit Restaurant
  • Delete Restaurant
  • See Categories
  • See Restaurants by Category (pagination)
  • See Restaurants (pagination)
  • See Restaurant
  • Search Restaurant
  • Create Dish
  • Edit Dish
  • Delete Dish

Order CRUD

  • Create Orders
  • Read Orders
  • Read Order
  • Update Order

Order Subscription

  • Pending Orders (s: newOrder) (t: createOrder(newOrder))
  • Cooked Order (Delivery) (s: cookedOrder) (t: updateOrder(cookedOrder))
  • Order Status (Customer, Delivery, Owner) (s: orderUpdate) (t: updateOrder(orderUpdate))
  • Pending Pickup Order (Delivery) (s: orderUpdate) (t: updateOrder(orderUpdate))
  • Add Driver to Order

Payment

  • Create Payment
  • Find Payment
  • Payments Cron Jobs
  • Payments (Paddle - alt. to Stripe)

Order Status Road-map.

  1. Pending - Client create Order
  2. Cooking - Restaurant owner see pending orders & update status to Cooking
  3. Cooked - Restaurant owner complete dish & update status to cooked - Driver see cooked orders & add themselves
  4. PickedUp - Driver arrive at resturant & update status to PickUp
  5. Delivered - Driver delivers dish to client & update status to Delivered

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# 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

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

ubereats-be's People

Contributors

stephyswe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.