Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.08 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.08 KB

MakersBnB Python Project Seed

This repo contains the seed codebase for the MakersBnB project in Python (using Flask and Pytest).

Someone in your team should fork this seed repo to their GitHub account. Everyone in the team should then clone this fork to their local machine to work on it.

Setup

# Set up the virtual environment
; python -m venv makersbnb-venv

# Activate the virtual environment
; source makersbnb-venv/bin/activate 

# Install dependencies
(makersbnb-venv); pip install -r requirements.txt

# Install the virtual browser we will use for testing
(makersbnb-venv); playwright install
# If you have problems with the above, contact your coach

# Create a test and development database
(makersbnb-venv); createdb YOUR_PROJECT_NAME
(makersbnb-venv); createdb YOUR_PROJECT_NAME_TEST

# Open lib/database_connection.py and change the database names
(makersbnb-venv); open lib/database_connection.py

# Run the tests (with extra logging)
(makersbnb-venv); pytest -sv

# Run the app
(makersbnb-venv); python app.py

# Now visit http://localhost:5001/index in your browser