The repository contains all the lab work for the computer graphics course.
The repository contains:
- Python files for backend
- HTML, CSS, JS files for frontend
- Docker to start the project
To run the application locally there are three options:
- run through the IDE
- run through the terminal
- run through Docker
main: Contains all project source files and Docker files for running the application.
- IDE. Clone the repository, you can do this by using command
git clone
or downloading the zip archive. Install the IDE you like. For example you can use PyCharm.
Install all the libraries you need for the application to work. See the requirements.txt file for a complete list. - Terminal. Clone the repository, you can do this by using command
git clone
or downloading the zip archive.
The next step is to enter a commandpython app.py
in the project folder. - Docker. Clone the repository, you can do this by using command
git clone
or downloading the zip archive. You have two options:- start with docker-compose - You need to execute two commands (in the project folder)
docker build -t color_app:dev .
and
thendocker run -p 5000:5000 color_app:dev
. - without docker-compose - You need to execute one command (in the project folder)
docker-compose up
.
After that you can see how the application works by clicking on the link http://127.0.0.1:5000
- start with docker-compose - You need to execute two commands (in the project folder)