blondelg / auto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automobile comparator

The aim of this project is to provide an app that can scrappe data and, through a machine learning model, provides a second hand market valuation for any add according to its settings.

Developpment environnement

Dockerfile provides a simple container setup to deploy the project on developpment mode.

docker-compose.yml stores containers' orchestration for database and web server.

Deployement

To create images and containers:

docker-compose up --build -d

To check the two containers (runserver and database) are running well:

docker ps

To migrate the database:

docker exec runserver ./manage.py migrate

To connect to the database without client (password: root):

docker exec -ti database mysql -u root -h localhost -p autodb

Then go to http://127.0.0.1:8000

Re-build web-server

If a new commit has been done, here is a command that re-build the web-server without destroying the database

docker-compose build runserver

About


Languages

Language:Python 97.1%Language:Dockerfile 2.4%Language:Shell 0.5%