Skip to content

devclub-iitd/Mess-Backend

Repository files navigation

Data Models

Admin

  • kerberos
  • password_hash
  • name
  • access ("root", "manager", "staff", "secy")

User

  • Kerberos
  • Name
  • Photo
  • Hostel # TODO: Object?

AccessToken

  • User_id
  • token
  • created_time
  • isActive
  • scope ("full")

RawMaterial

  • name
  • vendors: ["", ""]

TODO: implement inventory, keep track of how much raw material left

FoodItem

  • name
  • raw_materials[]

Meal

  • Mess # TODO: Object?
  • start_time
  • end_time
  • capacity
  • fooditem_ids[]
  • price

MealToken

  • User_id
  • Meal_id
  • BookStatus ("issued", "used")
  • Enter_Timing

Endpoints

auth

login

logout

myProfile

createAdmin

staff

verifyToken

verityWithoutToken

getProfile

uploadPhoto (TODO)

getMealTokens

useMealToken

manager

createUser

createAccessToken

getAccessToken

createRawMaterial (TODO)

createFoodItem (TODO)

createMeal

getMeals

createMealToken

api

getMealMenus

getMealTokens

reports/...

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

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.