This is project that provide rest api and system management for Restaurant.
- 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
-
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 versionpip install pyenv
- Verify that all dependencies are installed correctly
pipenv graph
- models
python manage.py makemigrations
andpython manage.py migrate
Use requiremetns.txt and standard venv instead pipenv
python venv env
env\Scripts\activate
pip install -r requiremets.txt
you can find Insomnia API endpoints testing collection in path docs/API
:
path to ER-D docs/ERD/README.md
This project is licensed under the MIT License.