Skip to content

pshop/p11_pur_beurre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pur_beurre_v2

Accueil

Try online : https://pur-beurre-v2.herokuapp.com

What is Pur Beurre ?

  • 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.

How to run it yourself ?

Requirements:

  • Python 3.7
  • Django 2.1
  • Pip 18.1
  • Postgresql

Run it:

  • 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.pyset 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published