Take Your Playlist to the Next Level

Take Your Playlist to the Next Level

Until now, we have been using lists of dictionaries to store the information related to songs and playlists in our projects. Now that know how to use use the database, let’s create models for these entities instead. Let’s also enable sign-up and sign-in. This project consists of a total of nine tasks, which are briefly described below with snapshots of desired output where neceessary.

  • Your first task is to create models for songs and playlists.

  • Your second task is to create a relationship between the two models. As you know, the Playlist model can have many songs in it, and one song can be in multiple playlists. So, the two models will have a Many-to-Many relationship.

  • Your third task is to create a sign-up form for the users in your system.

Homepage-Output

Signup page - Expected Output

Login Homepage - Expected Output

Login page when credentials aren’t verified yet.

Login page when credentials are verified.

  • Your fourth task is to create a login form for the users in your system

Homepage - Expected Output

  • Your fifth task is to insert new users at signup in a database. We will check that a user with that email doesn’t already exist.

Non-unique email - Expected Output

  • Your sixth task is to authenticate the user at login using the authenticate function.
  • Your seventh task is to insert songs and playlists present in array using objects.
  • Your eighth task is to retrieve all playlists you just inserted using object from the database and display them on the home page.
  • Your last task of this challenge is to make an Edit form that contains all the fields to edit a song.