- Install all dependencies
pip install -r requirements.txt
- Run deploy.py to start using the model
python deploy.py
- Docker Engine is required for running the web application. If not, then an installation is compulsory.
- Clone the project on Github or download zip file then unzip it.
- Open Docker Engine, then open the terminal on the folder that contains the project.
- The ports that are used in this project are as below. Make sure no other running applications on the system uses those.
Web interface: port 80 MySQL database: port 3307 phpMyAdmin: port 8081
- Type “docker-compose up” into the terminal to run the project containers.
- Database is accessed by the URL “localhost:8081” on the browser. Login information are as follow:
Username: root Password: 12345
- For importing the dataase, create a new database on the phpMyAdmin webpage, then select "import" button. Locate the file "mosq_imagesdb.sql" in the "db_schema" folder. After that, choose import at the end of the page. If the query returns successfully, then the database is imported and ready to use.