mkmenta / yelp-camp-python

Final project from the Web Developer Bootcamp from Colt Steele in Udemy translated into Python using Flask.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YelpCamp Python

Final project from the Web Developer Bootcamp from Colt Steele in Udemy translated into Python using Flask.

Run the app with:

export FLASK_APP=app
export FLASK_ENV=development
export FLASK_DEBUG=1
flask run

and open https://127.0.0.1:5000/

Installation

I recommend using a virtual environment:

python3 -m virtualenv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt

Setup

Before running the app, configure the following APIs:

  • Register to MongoDB atlas and set the following environment variables:
export MONGOURI="mongodb+srv://rw:¿?@¿?.mongodb.net/yelpCamp?retryWrites=true&w=majority"
  • Register at cloudinary.com and set the following environment variables:
export CLOUDINARY_NAME="¿?"
export CLOUDINARY_KEY="¿?"
export CLOUDINARY_SECRET="¿?"
  • Register at mapbox and set the following environment variables:
export MAPBOX_ACCESS_TOKEN="¿?"
  • Set a secret for the app:
export YELP_CAMP_SECRET="¿?"

Seeding

Fill the database with fake data:

python3 -m seeds.main

References

About

Final project from the Web Developer Bootcamp from Colt Steele in Udemy translated into Python using Flask.

License:MIT License


Languages

Language:Python 85.7%Language:HTML 7.8%Language:CSS 4.8%Language:JavaScript 1.8%