OpenClassrooms // Application Developer Training - Python // Project 08
The startup Pur Beurre, with which you have already worked, wants to develop a web platform for its customers. This site will allow anyone to find a healthy substitute for a food considered "Too fat, too sweet, too salty" (although we all know that fat is life).
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Python 3, PostgreSQL
Clone this repository to your local machine:
git clone https://github.com/vincenthouillon/purbeurre-app.git
Go to the purbeurre-app folder:
cd purbeurre-app
Install dependencies in the virtual environment:
pipenv install
To install and activate the virtual environment:
python -m venv venv
python venv\Scripts\activate
pip install -r requirements.txt
Important
Create a database 'purbeurre' in PostgreSQL.
To create the tables in the database:
manage.py makemigrations
manage.py migrate
To populate database:
Windows | Unix system | |
---|---|---|
manage.py getdata | python manage.py getdata |
To launch the program:
Windows | Unix system | |
---|---|---|
manage.py runserver | python manage.py runserver |
And open your browser to the following address 'localhost:8000'.
For disable the virtal environnement, enter:
deactivate
Run tests:
Windows | Unix system | |
---|---|---|
manage.py test | python manage.py test |
This project is visible on Heroku.
- Python 3.7 - Python is a programming language that lets you work quickly and integrate systems more effectively.
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.
- Vincent Houillon - Initial work - vincenthouillon
This project is licensed under the MIT License - see the LICENSE file for details.