Backend of Eats App built with NestJS
A localhost graphQL playground should initiate.
Make sure to include a .env.dev
file at root.
Requires PostgreSQL server running.
npm install
npm run start:dev
Use watch to run all unit tests and cov for coverage.
npm run test:watch
npm run test:cov
For E2E testing:
Make sure to include a .env.test
file at root.
npm run test:e2e
Data Models
-
id
-
createdAt
-
updatedAt
-
email
-
password
-
role(client | delivery | owner)
- Create Account
- Log In
- See Profile
- Edit Profile
- Verify Email
- name
- category
- address
- coverImage
-
View categories
-
View Restaurants by Category (pagination)
-
View Restaurants (pagination)
-
View Restaurant
-
Edit Restaurant
-
Delete Restaurant
-
Create Menu
-
Edit Menu
-
Delete Menu
- Menu Item name
- Menu Item price
- Create Menu Item
- Edit Menu Item
- Delete Menu Item
- Create Order
- Edit Order (Edit status)
- Delete Order
- Pending Orders (Owner dashboard) -> (s/listen: newOrder && trigger: createOrder(newOrder))
- Order Status (Client/Customer) -> (s/listen: orderUpdate && trigger: editOrder(orderUpdate))
- Pending Pickup (Delivery) -> (s/listen: orderUpdate && trigger: editOrder(orderUpdate))
- opt to use Paddle instead of Stripe due to side project limitations
- Create Payment
- (Query) View Payments