added .env instruction to the readme

This commit is contained in:
Djalim Simaila 2023-03-10 15:35:10 +01:00
parent 86bcfefaac
commit 953b4d522d

View File

@ -21,7 +21,11 @@ If you want to contribute you may install the dev dependecies as well : ```pip i
You will need to create the .env file from the .env.dist and fill the parameters. Do take note that this website was conceived to run on a mariadb sql database, however this can be easly changed in the data_access.py file. In order to fill the remote database with the data availible in this repo you will need to run the remote.py script : ```python3 truthinquiry/logic/data_persistance/remote.py ```
To launch the web server just run the command ```flask run```.
To launch the web server you will need to fill the .env file with the database connection and to fill the flask_secret within it then you can use
```flask run```
to launch the web server
To run the tests, run the command ```python3 -m pytest --verbose```.