/pitsarama

Dummy Pizza Delivery app

Primary LanguageJavaScript

Pitsarama

AltSchool Badge

A dummy pizza delivery API

Tasks

  • add a user schema, the attributes/fields are up to you but the required fields/attributes are:

    • username,
    • password and
    • user_type.
    • user_type should be “admin” or “user”
  • using basic authentication, protect the order routes

  • add query params to the /orders route, we want to:

    • sort the total_price from ascending to descending
    • sort the date created from asc to desc
    • query by a state
  • add pagination to the GET /orders route

Bonus

  • Write integration tests for all the routes
  • Refactor the code such that we have routers for orders and users
Development

Run npm install to install dependencies used, then run npm start dev to start the devlopment server on http://localhost:5555/