Skip to content

Restaurant API using DRF, with Authentication, Menu, Cart and Order management systems and etc.

License

Notifications You must be signed in to change notification settings

dotpep/restaurant-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restaurant API

This is project that provide rest api and system management for Restaurant.

API Features

  • Authentication
  • Searching, Filtering, Ordering/Sorting
  • Pagination and Throttling
  • Category
  • Menu Item
  • User group management
  • Cart management
  • Order management

Groups/Roles: Admin, Manager, Delivery crew, authenticated user is Customer

Installation and Runing

  • clone this repo git clone https://github.com/dotpep/restaurant-api

  • cd restaurant-api

  • insatall python > 3.8

  • install pipenv for virtual environment pip insatall pipenv

  • create virtual enviroment pipenv shell

  • install dependencies pipenv install

  • python manage.py runserver

You should now be able to access the API at http://localhost:8000/

Admin panel http://localhost:8000/admin/

username: admin

password: admin

  • you can activate pipenv venv in powershell by pipenv shell, &.virtualenvs\restaurant-api-your_specific_project_hash\Scripts\activate.sh
  • Check python version pip --version or Use pyenv to install multiple python version pip install pyenv
  • Verify that all dependencies are installed correctly pipenv graph
  • models python manage.py makemigrations and python manage.py migrate

Use requiremetns.txt and standard venv instead pipenv

  • python venv env
  • env\Scripts\activate
  • pip install -r requiremets.txt

Documentation

Demonstration

API

you can find Insomnia API endpoints testing collection in path docs/API:

ER-diagram

path to ER-D docs/ERD/README.md

Database Entity Design ER-D

LICENCE

This project is licensed under the MIT License.

About

Restaurant API using DRF, with Authentication, Menu, Cart and Order management systems and etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages