Skip to content

InkubatorTieto/melvil

Repository files navigation

Project description:

Melvil application for Tieto Python Incubator.

Project configuration:

  1. Clone repository from: git@github.com:InkubatorTieto/melvil.git
  2. Install docker and docker-compose:.

Development:

  1. 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
  1. And start it on localhost:5000
. run-server.sh

On Windows

run-server.bat

Production:

  1. To build image for production server run:
. run-server.sh -p -b 

On Windows

run-server.bat /p /b 
  1. And start it on localhost:8080:
. run-server.sh -p

On Windows

run-server.bat /p 

Running tests

Run tests: HOW TO

Database Migrations

Run migrations: HOW TO

Heroku configuration

Heroku About

Using Travis CI:

Travis CI short manual