Skip to content

Swright88/web_music_library

Repository files navigation

Flask Web & Database Project Starter

This is a starter project for you to use to start your Flask web & database projects.

It contains quite a lot of example code. You can use this to see how the various parts of the project work, or you can delete it and start from scratch.

There are two videos to support:

Setup

# Clone the repository to your local machine
; git clone [email protected]:makersacademy/web-applications-in-python-project-starter-plain.git YOUR_PROJECT_NAME

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

# Enter the directory
; cd YOUR_PROJECT_NAME

# Install dependencies and set up the virtual environment
; pipenv install

# Activate the virtual environment
; pipenv shell

# Create a test and development database
; createdb YOUR_PROJECT_NAME
; createdb YOUR_PROJECT_NAME_test

# Open lib/database_connection.py and change the database names
; open lib/database_connection.py

# Seed the development database (ensure you have run `pipenv shell` first)
; python seed_dev_database.py

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

# Run the web server
; python app.py
# Now visit http://localhost:5000/emoji in your browser

If you would like to remove the example code:

; ./remove_example_code.sh

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published