Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

vincenthouillon/purbeurre-p08

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pur Beurre

OpenClassrooms // Application Developer Training - Python // Project 08

Link to the project Management Board

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

Screenshot

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Python 3, PostgreSQL

Installing

Clone this repository to your local machine:

git clone https://github.com/vincenthouillon/purbeurre-app.git

Example with 'venv'

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

Running the tests

Run tests:

Windows Unix system
manage.py test python manage.py test

Deployment

This project is visible on Heroku.

Built With

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

API Reference

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments