Skip to content

edenroseFR/foodle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food Donation Web Application

FEATURES

  • Post, Track, Manage

SETUP & INSTALLATION

  1. Clone the repository to your local machine by running the following command on your command-line.
clone https://github.com/edenroseFR/foodle.git
  1. Navigate inside the foodle folder
cd foodle
  1. Create a virtual environment
virtualenv venv
  1. Activate the virtual environment
cd venv/Scripts/activate
  1. Install all the requirements.
pip install -r requirements.txt
  1. Create a dotenv file.
type nul > .env
  1. Open the .env file and write the following:
SECRET_KEY = value

DB_HOST= value
DB_NAME= fododb
DB_USERNAME= value
DB_PASSWORD= value

CLOUD_NAME = value
API_KEY = value
API_SECRET = value
PHOTO_UPLOAD = cloud
  1. Create a flaskenv file.
type nul > .flaskenv
  1. Open the .flaskenv file and make sure it contains the following:
FLASK_APP=app
FLASK_ENV=development
FLASK_RUN_PORT=8080
  1. In your MySQL IDE, execute the script.sql file located in foodle/database_script

RUNNING THE APP

  1. Activate the virtual environment
cd venv/Scripts/activate
  1. Run
flask run