This project was created and is sole property of Annglorious mueni.
For this assignment, we'll be working with a Concert domain.
We have three models: Band(name and hometown),Venue(title and city), and Concert.
For our purposes, a Band has many Concerts, a Venue has many Concerts, and a Concert belongs to a Band and to a Venue.
Band - Venue is a many to many relationship.
- id (Primary Key)
- name (String)
- hometown (String)
- id (Primary Key)
- title (String)
- city (String)
- id (Primary Key)
- band_id (Foreign Key referencing Bands)
- venue_id (Foreign Key referencing Venues)
- date (String)
- A Band can have many Concerts.
- A Venue can host many Concerts.
- A Concert belongs to one Band and one Venue.
- Concerts(): Returns all concerts for the band.
- Venues(): Returns all venues the band has performed at.
- Play_in_venue(venue, date): Creates a new concert for the band.
- All_introductions(): Returns an array of introductions for all concerts.
- Concerts(): Returns all concerts at the venue.
- Bands(): Returns all bands that have performed at the venue.
- Concert_on(date): Finds the first concert on a given date.
- Most_frequent_band(): Returns the band with the most concerts at the venue.
- Band(): Returns the band instance for the concert.
- Venue(): Returns the venue instance for the concert.
- Hometown_show(): Returns true if the concert is in the band's hometown.
- Introduction(): Returns a string introduction for the concert.
- Band.most_performances(): Returns the band that has played the most concerts.
- One would need either linux or wsl for window users
- A copy of visual basic code installed
- A github account
- Open your terminal and go to the directory you wish to work from.
- Go to the following url using ur github account https://github.com/ANNGLORIOUS/phase3-code-3
- Go to the code tab and clone the ssh key
- Go back to the termina and type git clone <-followed by the ssh key you copied /cloned ->
- Enter your new cloned repository and type in code .
- On the visual studio code that has now opened, go to the the run tab.
- Install the requied packages and set up the required database.
This program is built purely with python using the visual code environment.
For any issues please email me at annglorious.mueni@student.moringaschool.com
Apache License 2.0