Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/charan-kumar-137/pizza
Django application to store information about pizza
https://github.com/charan-kumar-137/pizza
Last synced: 3 days ago
JSON representation
Django application to store information about pizza
- Host: GitHub
- URL: https://github.com/charan-kumar-137/pizza
- Owner: charan-kumar-137
- Created: 2021-08-28T16:04:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-28T16:04:57.000Z (over 3 years ago)
- Last Synced: 2024-11-14T10:38:49.885Z (2 months ago)
- Language: Python
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pizza
### Overview
A application to store information about different types of pizza.
Pizza can be of multiple types and sizes and can have toppings.
An API to retrieve, create, modify and delete the pizza### Technology
* **[Django](https://www.djangoproject.com/)**
* **[MongoDB](https://www.mongodb.com/)**### API
The API endpoints are:| Endpoind | Description |Method |
|----------------|---------------------|:-----:|
|create |Create a Pizza |POST |
|list |Get list of Pizzas |GET |
|get/pizza_id |Get details of Pizza |GET |
|edit/pizza_id |Edit the Pizza |PUT |
|delete/pizza_id |Delete the Pizza |DELETE |### Installation
Clone the repository`git clone https://github.com/charan-kumar-137/Pizza`
Create a virtual environment and activate it
Go to project root directory
`cd Pizza`
Install the requirements
`pip install -r requirements.txt`
Migrate the model to database scheme
`python manage.py migrate`
Start the server
`python manage.py runserver`
### Usage
The api can be accessed at http://127.0.0.1:8000/api/