Overview:
This website allows the user to enter their weight, and then uses Solar System OpenData to retrieve various data about the planet that is selected. Data includes aphelion, perihelion, name, and gravity.
Technologies:
This project uses HTML, CSS, and JavaScript for the front-end and uses Django Ninja REST framework for the back-end. It uses Docker as well for publishing the website.
Improvements:
This project can be built on further. We were originally going to create an orbital mapping of the planets with accurate positioning. Instead, the current presentation is in a vertical format.
-
Make sure you are connected to the internet so this website runs properly.
-
Python must be installed in your machine.
-
Create an environment using
python -m venv venv
. -
To activate the environment,
venv\Scripts\activate
for windows.source venv/bin/activate
for linux.
-
Install the required packasges using
pip install -r requirements.txt
. -
To run the server use
python manage.py runserver
.
-
Make sure that docker is installed in your machine.
-
docker run siddharth9805/girlhack_ghcr:latest
.
-
Make sure that docker and minikube is installed in your machine.
-
kubectl apply -f deployment.yaml
. -
kubectl apply -f service.yaml
. -
minikube service <service-name> --url
(service name is mensioned in the service.yml file). -
Navigate to the browser mensioned in the terminal.