Skip to content

RedNate22/Club95

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

277 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Club95

Club95 is a prototype Flask based web application for promoting live music groups, artists, and events, with integrated content management and database support.

Promotional Imagery

This project includes promotional imagery and the band name "Crescent City Players."

Permission to use these assets was granted by the band on 30th August, 2025.

The assets are used solely for educational purposes.

They are not to be redistributed or used commercially.

Running the project

Installing requirements

First install the required modules from requirements.txt:

pip install -r requirements.txt

Configuring Flask

The included launch.json already configures the python debugger for running the flask application, however when running it normally, you may need to first point Flask towards the application:

Linux/MacOS

export FLASK_APP=main.py

Windows (CMD)

set FLASK_APP=main.py

Windows (Powershell)

$env:FLASK_APP="main.py"

Running Flask app

Once setup, run the Flask app by either pressing F5 (vscode) to run, or:

python -m flask run  # same command in any terminal

Alternatively, you can directly run the app by passing main.py:

python -m main.py

Creating database steps

The database is automatically generated and built upon initial run of the app in instance/. To rebuild the database, simply delete the .sqlite db file and rerun the app. Alternatively, manually build the db:

  1. Enter python interpreter in terminal. NOTE: use quit() to leave
python
  1. create app from our package (Club95 in this case). then import db and run the create app function
from club95 import db, create_app
  1. create an instance of app. there may be some warnings. no biggie.
app=create_app()
  1. create a context object that points at the context for the application
ctx=app.app_context()
  1. push it (?? this was poorly explained in video)
ctx.push()
  1. create the database (should see it in file explorer on left)
db.create_all()

About

Prototype Flask based web application for promoting live music groups, artists, and events.

Topics

Resources

License

Stars

Watchers

Forks

Contributors