This was the final group project in the course "DATA2410 Networking and cloud computing" at OsloMet.
The task was to build a simple webshop using Python Flask and a RESTful API.
- Download Docker and Docker compose from: https://docs.docker.com/get-docker/
- Clone or download this project and navigate to the folder with the docker-compose.yml file.
- In the folder, open up a terminal or command prompt and run the following command:
NB: You need to be sudo to run the command in Linux.
docker-compose up
URL | Description |
---|---|
https://localhost:5000 | The webshop |
http://localhost:9090 | Prometheus (resource tracking) |
http://localhost:3000 | Grafana (graphically displays data from prometheus) |
When accessing https://localhost:5000 you will get a warning in your browser. This happens because the website uses a self-signed SSL certificate. Allow this in your browser to continue.
In-depth documentation: https://drive.google.com/file/d/1pGqMooQkV7aHccHx2ehbwOMh8TQJfL9l/view?usp=sharing
Front end:
- HTML, CSS (Bootstrap) and JavaScript (jQuery)
Backend:
- Python, with the Flask framework
- MySQL (database)
Other features:
- Resource monitoring with Promethues and Grafana
Deployment
- Docker and Docker compose