https://github.com/controlplane-com/pizza-django
https://github.com/controlplane-com/pizza-django
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/controlplane-com/pizza-django
- Owner: controlplane-com
- Created: 2022-04-16T01:01:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-18T22:54:32.000Z (about 4 years ago)
- Last Synced: 2024-12-30T07:42:28.321Z (over 1 year ago)
- Language: Python
- Size: 105 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Control Plane - Django Example
Required:
1. Control Plane Org
2. Control Plane GVC
Instructions:
1. Clone repository using the command: `git clone git@github.com:controlplane-com/pizza-django.git`
2. Install and login using the Control Plane CLI
3. Build and push image using the command: `cpln image build --name pizza-django:0.1 --push --org ORG_NAME`
4. Create a workload using this image: `cpln workload create --name pizza-django --image //image/pizza-django:0.1 --public --org ORG_NAME --gvc GVC_NAME`
5. That's it!
To Test:
Using the deployed endpoint, the following paths can be browsed to and a sample json can be posted.
1. https://ENDPOINT/pizza/locations/
- Use this sample content to post:
```
{
"address": "6724 Yacht Blv",
"city": "Cornwall",
"region": "ON",
"code": "K6H7N6"
}
```
2. https://ENDPOINT/pizza/store/10520/menu
- Shows the menu from the location id given in the response to step 1.
3. https://ENDPOINT/pizza/order
- This endpoint can take an order post, but don't post and json since it actually hits the Dominos Pizza API.