Database Project Starter

This is a starter project for you to use to start your Python database projects.

There are two videos to support:

Setup

# Clone the repository to your local machine
; git clone git@github.com:makersacademy/databases-in-python-project-starter.git YOUR_PROJECT_NAME

# Or, if you don't have SSH keys set up
; git clone https://github.com/makersacademy/databases-in-python-project-starter.git YOUR_PROJECT_NAME

# Enter the directory
; cd YOUR_PROJECT_NAME

# Install dependencies and set up the virtual environment
; pipenv install
# Read below if you see an error with `python_full_version`

# Activate the virtual environment
; pipenv shell

# Create the database
; createdb YOUR_PROJECT_NAME

# Open lib/database_connection.py and change the database name to YOUR_PROJECT_NAME
; open lib/database_connection.py

# Run the tests
; pytest

# Run the app
; python app.py
😕 I see an error about `python_full_version`?

Your pipenv may be outdated and subject to a bug with newer Pipfiles.

; pipenv --version
2022.9.24 # If you see something in September 2022, try this
; pip3 install "pipenv>=2022.11.5" -U
# pip3 will update pipenv for you

# Then try running `pipenv install` again
; pipenv install

If that works, great! If not, contact your coach.



How was this resource?
😫 😕 😐 🙂 😀
Click an emoji to tell us.