This is the back end for an app similar to spotify. It includes:
- User registration and authentication
- Account verification to verify users as artists
- A way for verified artists to create both albums and songs associated with specific albums
- Playlist creation for users
- A way for songs to be added to playlists by users
Django is being used to model the data and handle HTTP requests. The app has also been containerized using Docker Compose.
- Make sure you have Python 3.x, PostgreSQL, and Docker installed on your system.
- Set up a virtual environment with the command
python -m venv venv. - Install the dependencies with the command
pip install -r requirements.txt. - Run the docker containers with the command
docker compose up -d. - Make the database migrations with the commands
python manage.py makemigrationsfollowed bypython manage.py migrate. - API requests can now be made using an API testing tool, such as Insomnia, and data will be created, retrieved, updated, or deleted accordingly.
- Stop docker containers with the command
docker compose down --rmi all.