Fyyur is a musical venue and artist booking site that facilitates the discovery and bookings of shows between local performing artists and venues. This site lets you list new artists and venues, discover them, and list shows with artists as a venue owner.
My job was to build out the data models to power the API endpoints for the Fyyur site by connecting to a PostgreSQL database for storing, querying, and creating information about artists and venues on Fyyur.
This app is nearly complete. It is only missing one thing⦠real data! I'm using a PostgreSQL database.
- β Creating new venues, artists, and creating new shows.
- β Searching for venues and artists.
- β Learning more about a specific artist or venue.
- β
Using SQLAlchemy, set up normalized models for the objects we support in our web app in the Models section of
app.py
- β Implement missing model properties and relationships using database migrations via Flask-Migrate.
- β Implement form submissions for creating new Venues, Artists, and Shows.
- β Implement the controllers for listing venues, artists, and shows.
- β
Implement search, powering the
/search
endpoints that serve the application's search functionalities. - β
Serve venue and artist detail pages, powering the
<venue|artist>/<id>
endpoints that power the detail pages.
We did make that happen!π
Our tech stack will include the following:
- π» virtualenv as a tool to create isolated Python environments
- π SQLAlchemy ORM to be our ORM library of choice
- π PostgreSQL as our database of choice
- π Python3
- π§ͺ Flask as our server language and server framework
- π§° Flask-Migrate for creating and running schema migrations
You can download and install the dependencies mentioned above using
pip
as:
You must have the HTML, CSS, and Javascript with [Bootstrap 3].
βββ README.md
βββ app.py *** the main driver of the app. Includes your SQLAlchemy models.
"python app.py" to run after installing dependences
βββ config.py *** Database URLs, CSRF generation, etc
βββ error.log
βββ forms.py *** Your forms
βββ requirements.txt *** The dependencies we need to install with "pip3 install -r requirements.txt"
βββ static
β βββ css
β βββ font
β βββ ico
β βββ img
β βββ js
βββ templates
βββ errors
βββ forms
βββ layouts
βββ pages
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
- Download the project starter code locally
git clone https://github.com/udacity/FSND.git
cd FSND/projects/01_fyyur/starter_code
-
**Create an empty repository in your Github account online.
-
Initialize and activate a virtualenv using:
python -m virtualenv env
source env/bin/activate
Note - In Windows, the
env
does not have abin
directory. Therefore, you'd use the analogous command shown below:
source env/Scripts/activate
- Install the dependencies: π³
pip install -r requirements.txt
- Run the development server: π¨
export FLASK_APP=myapp
export FLASK_ENV=development # enables debug mode
python3 app.py
- Verify on the Browser
π₯π»π± Navigate to project homepage http://127.0.0.1:5000/ or http://localhost:5000 π±βπ
πΌ Good luck π