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/
I recommend using a virtual environment:
python3 -m virtualenv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
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="¿?"
Fill the database with fake data:
python3 -m seeds.main