Change haldis.py to app.py in README

This commit is contained in:
redfast00 2019-09-11 22:39:41 +02:00
parent 5b2f6de323
commit a44f02e2c7
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -16,19 +16,19 @@ Be lazier today!
There is a special script to get started with the project. Just run it in the root of the project. There is a special script to get started with the project. Just run it in the root of the project.
./first-setup.sh ./first-setup.sh
This will create a virtual environment, install the necessary dependencies and will give you the option to seed the database. 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. 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 Afterwards upgrade the database to the latest version using
cd app cd app
python haldis.py db upgrade python3 app.py db upgrade
You can now still seed the database by running You can now still seed the database by running
./populate-db.sh ./populate-db.sh
in the root folder of the project. in the root folder of the project.
@ -38,15 +38,15 @@ Activate the virtual environment using
Finally run the webserver with Finally run the webserver with
python app/haldis.py runserver python3 app/app.py runserver
## Development ## Development
### Changing the database ### Changing the database
1. Update models located in 'app/models.py' 1. Update models located in 'app/models.py'
2. Run `python app/haldis.py db migrate` to create a new migration. 2. Run `python app/app.py db migrate` to create a new migration.
3. Apply the changes to the database using `python app/haldis.py db upgrade` 3. Apply the changes to the database using `python app/app.py db upgrade`
### Adding dependencies/libraries ### Adding dependencies/libraries
@ -61,4 +61,4 @@ For more information about managing the dependencies see [jazzband/pip-tools: A
## Authors ## Authors
* **Feliciaan De Palmenaer** - *Initial work* - [Github](https://github.com/feliciaan) * **Feliciaan De Palmenaer** - *Initial work* - [Github](https://github.com/feliciaan)