Try online : https://pur-beurre-v2.herokuapp.com
- Pur Beurre is an application that helps you eat healthier.
- Enter the name of a food in the search engine and Pur Beurre will suggest healthier foods to replace it.
- You can save your favorite products for viewing at any time.
- Python 3.7
- Django 2.1
- Pip 18.1
- Postgresql
- Clone or Download the Git repository.
- I suggest to create a new virtual environment with
python3 -m venv venv
for instance. - Install all the dependencies with
pip install requirement.txt
. - In the
settings.py
set the environment variable like this :
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': '<YOUR DB NAME>',
'USER': '<YOUR DB USER>',
'PASSWORD':<YOUR DB PASSWORD>,
'HOST': 'localhost',
'PORT': '5432',
}
}
Note that if you what to use an other Relational database management system, you can refer to the Django Doc
- And like this:
SECRET_KEY = '<YOUR SECRET KEY>'
we are almost done,
- Now run
python manage.py makemigrations
- And
python manage.py base_init
to fill the database with a bunch of fresh datas.