πŸŽΌπŸŽ™πŸŽΈπŸŽΆπŸŽŸ Fyyur πŸŽΌπŸŽ™πŸŽΈπŸŽΆπŸŽŸ

Introduction

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.

Overview

This app is nearly complete. It is only missing one thing… real data! I'm using a PostgreSQL database.

TO DO'S WHERE DONE πŸ±β€πŸ’»

  • βœ… 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!πŸŽ‰

Tech Stack (Dependencies) πŸ‘©β€πŸ’»

1. Backend Dependencies

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:

2. Frontend Dependencies

You must have the HTML, CSS, and Javascript with [Bootstrap 3].

Main Files: Project Structure

β”œβ”€β”€ 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

ROOT OF THIS ACADEMIC PROJECT

⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇

Development Setup πŸ”¨β›πŸ”©πŸ§±πŸ§°πŸ”Œ

  1. Download the project starter code locally
git clone https://github.com/udacity/FSND.git
cd FSND/projects/01_fyyur/starter_code 
  1. **Create an empty repository in your Github account online.

  2. Initialize and activate a virtualenv using:

python -m virtualenv env
source env/bin/activate

Note - In Windows, the env does not have a bin directory. Therefore, you'd use the analogous command shown below:

source env/Scripts/activate
  1. Install the dependencies: πŸ•³
pip install -r requirements.txt
  1. Run the development server: πŸ’¨
export FLASK_APP=myapp
export FLASK_ENV=development # enables debug mode
python3 app.py
  1. Verify on the Browser
    πŸ₯‚πŸ’»πŸ“± Navigate to project homepage http://127.0.0.1:5000/ or http://localhost:5000 πŸ±β€πŸš€

πŸ–Ό Good luck 😊