This is a todo list web application with basic features of most web apps, i.e., accounts/login, API, and interactive UI. To do this task, you will need:
Try it out by installing the requirements (the following commands work only with Python 3.8 and higher, due to Django 4):
pip install -r requirements.txt
Create a database schema:
python manage.py migrate
And then start the server (default is http://localhost:8000):
python manage.py runserver
Now you can browse the API or start on the landing page.
Create a kubernetes manifest for a pod which will containa ToDo app container:
- Fork this repository.
- Create a simple
Dockerfile
for the ToDo application - Add readiness endpoint code to
api
of the appliation (modifyapi/views.py
andapi/urls.py
) - Add liveness endpoint cide to
api
of the application (modifyapi/views.py
andapi/urls.py
) - Build your image and push to your personal Docker Hub account into the
todoapp
repository with the3.0.0
tag (todoapp:3.0.0
) - All manifests should be located under
.infrastructure
folder - Create a
manifest
which can be used to create a namespace. File should be namednamespace.yml
and should contain the following content:
apiVersion: v1
kind: Namespace
metadata:
name: todoapp
- Creata a pod
manifest
which will start abusyboxplus:curl
container in a cluster. File should be namedbusybox.yml
. - Create a pod
manifest
which will be using previously created image with tag{yourname}/todoapp:3.0.0
. File should be namedtodoapp-pod.yml
. - ToDo app pod
manifest
should have a readiness probe configured - ToDo app pod
manifest
should have a liveness probe configured README.md
file should contain instructions on how to apply all manifestsREADME.md
file should contain instructions on how to test ToDo application using theport-forward
commandREADME.md
file should contain instructions on how to test application using thebusyboxplus:curl
container- Create PR with your changes and attach it for validation on a platform.