Haldis is your friendly neighbourhood servant. He exists so lazy fucks like you and me don't need to keep tabs of who is ordering what from where. Start an order and let people add items with a simple mouse-click! No more calculating prices and making lists! Be lazier today!
There is a special script to get started with the project. Just run it in the root of the project.
This will create a virtual environment, install the necessary dependencies and will give you the option to seed the database.
If you are using a database other then sqlite you will first need to configure the correct uri to the database in the generated 'config.py' file. Afterwards upgrade the database to the latest version using
cd app python haldis.py db upgrade
You can now still seed the database by running
in the root folder of the project.
Activate the virtual environment using
Finally run the webserver with
python app/haldis.py runserver
Changing the database
- Update models located in 'app/models.py'
python app/haldis.py db migrateto create a new migration.
- Apply the changes to the database using
python app/haldis.py db upgrade
- Add new dependency to the
pip-compileto freeze the dependency into the
requirements.txtfile together with it's own deps
pip-syncto download frozen deps
For more information about managing the dependencies see jazzband/pip-tools: A set of tools to keep your pinned Python dependencies fresh.