Skip to content

My Artists 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.

License

Notifications You must be signed in to change notification settings

Alejandroq12/App-to-book-artists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

64 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

logo

My Artists

πŸ“— Table of Contents

πŸ“– My Artists

My Artists is a musical venue and artist booking site that facilitates the discovery and booking 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 venue owners.

My job is to build out the data models to power the API endpoints for this site by connecting to a PostgreSQL database for storing, querying, and creating information about artists and venues on Fyyur.

This is afully functioning site that is at least capable of doing the following, if not more, 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.

I want this to be the next new platform that artists and musical venues can use to find each other, and discover new music shows.

Main Files: Project Structure

β”œβ”€β”€ README.md
β”œβ”€β”€ app.py *** the main driver of the app. Includes SQLAlchemy models.
                  "python app.py" to run after installing dependencies
β”œβ”€β”€ config.py *** Database URLs, CSRF generation, etc
β”œβ”€β”€ error.log
β”œβ”€β”€ forms.py ***  Forms
β”œβ”€β”€ requirements.txt *** The dependencies needed to install with "pip3 install -r requirements.txt"
β”œβ”€β”€ static
β”‚Β Β  β”œβ”€β”€ css 
β”‚Β Β  β”œβ”€β”€ font
β”‚Β Β  β”œβ”€β”€ ico
β”‚Β Β  β”œβ”€β”€ img
β”‚Β Β  └── js
└── templates
    β”œβ”€β”€ errors
    β”œβ”€β”€ forms
    β”œβ”€β”€ layouts
    └── pages

Overall:

  • Models are located in the MODELS section of app.py.
  • Controllers are also located in app.py.
  • The web frontend is located in templates/, which builds static assets deployed to the web server at static/.
  • Web forms for creating data are located in form.py

Highlight folders:

  • templates/pages -- (Already complete.) Defines the pages that are rendered to the site. These templates render views based on data passed into the template’s view, in the controllers defined in app.py. These pages successfully represent the data to the user, and are already defined for you.
  • templates/layouts -- (Already complete.) Defines the layout that a page can be contained in to define footer and header code for a given page.
  • templates/forms -- (Already complete.) Defines the forms used to create new artists, shows, and venues.
  • app.py -- (Missing functionality.) Defines routes that match the user’s URL, and controllers which handle data and renders views to the user. This is the main file that I will be working on to connect to and manipulate the database and render views with data to the user, based on the URL.
  • Models in app.py -- (Missing functionality.) Defines the data models that set up the database tables.
  • config.py -- (Missing functionality.) Stores configuration variables and instructions, separate from the main application code. This is where I will need to connect to the database.

πŸ›  Built With

Tech Stack

Frontend
Backend
Database

Key Features

  • Post and find venues.
  • Post a show.
  • Post and find artists.

(back to top)

πŸš€ Live Demo

It will be available soon.

(back to top)

πŸ’» Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

In order to run this project you need:

Python

https://www.python.org/downloads/

Node.js

https://nodejs.org/en/download/

PostgreSQL

https://www.postgresql.org/download/windows/

Setup

Clone this repository to your desired folder:

  cd my-folder
  git clone https://github.com/Alejandroq12/App-to-book-artists.git

Install

Install all necessary dependencies:

1. Backend dependencies

Download and install the dependencies mentioned above using pip as:

pip install virtualenv
pip install SQLAlchemy
pip install postgres
pip install Flask
pip install Flask-Migrate

2. Frontend dependencies

HTML, CSS, and Javascript with Bootstrap 5 for this website's frontend. Bootstrap can only be installed by Node Package Manager (NPM). Therefore, if not already, download and install the Node.js. Windows users must run the executable as an Administrator, and restart the computer after installation. After successfully installing the Node, verify the installation as shown below.

node -v
npm -v

Install Bootstrap 5

npm init -y
npm install bootstrap@5

Usage

  1. 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:
python app.py
  1. Verify on the Browser
    Navigate to project homepage http://127.0.0.1:5000/ or http://localhost:5000

Deployment

I will deploy this site soon.

(back to top)

πŸ‘₯ Authors

πŸ‘€ Julio Quezada

(back to top)

πŸ”­ Future Features

  • I will deploy the database.
  • I will deplot the frotend
  • I will improve the user interface.

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project please give a star or send me a message with your feedback qjuliodev@gmail.com

(back to top)

πŸ™ Acknowledgments

I would like to thank Udacity because this project was assigned to me in order to develop the entire backend on my own.

(back to top)

❓ FAQ (OPTIONAL)

  • What did you learned with this project?

    • I learned how to use Python as a server side language and how to set up the database.

(back to top)

πŸ“ License

This project is MIT licensed.

(back to top)

About

My Artists 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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published