This is a somewhat basic restaurant menu management application. Features include secured API routes via sessionId tokens, fully functioning user signup / login, the ability to create new 'restaurants' - each with their own menu (or menus), and the ability to add items to the menu.
Also included in the project is an openapi.yml file, documenting (most) of the API routes.
-
/api/v1 - contains all API routes, with each route separated into it's own appropriate folder
- /login - 1 POST route
- /logout - 1 POST route
- /menus - 2 POST routes (secured), 2 GET routes (one with a specific :id)
- /register - 1 POST route
- /restaurants - 1 POST route (secured), 3 GET routes
- /util.js - helper authentication method for securing some API routes
-
/db - contains database connection code
-
/models - contains all models and schemas used in the project
-
/src
- /components - all (styled) components and partials used in App.js
- /pages - contains all pages used as routes in App.js
- /components - contains all (styled) components used in above pages
-
npm install
-
npm start OR npm run dev