Melvil application for Tieto Python Incubator.
- Clone repository from: git@github.com:InkubatorTieto/melvil.git
- Install docker and docker-compose:.
- To build image for development server run:
. run-server.sh -b
On Windows
run-server.bat /b
If database does not exist yet run:
$ . run-server.sh create-db
>run-server.bat create-db
If you want to load book data from xls to the database specify proper path of the file in app.py and then run:
$ . run-server.sh load-xls
>run-server.bat load-xls
If you want create admin account:
$ . run-server.sh create-admin
>run-server.bat create-admin
- And start it on localhost:5000
. run-server.sh
On Windows
run-server.bat
- To build image for production server run:
. run-server.sh -p -b
On Windows
run-server.bat /p /b
- And start it on localhost:8080:
. run-server.sh -p
On Windows
run-server.bat /p