Jukebox Back-End Lab Exercise

Requirements

Welcome to the Reactville Jukebox! In this lab, you’ll build the back-end of a collaborative, community-driven jukebox application where anyone can contribute tunes by adding, updating, or deleting music tracks. This lab is designed to give you practice developing a back-end API using Express.

As you develop each feature, you should use Postman to test your API endpoints.

You’ll implement full CRUD operations, allowing users to interact freely with the music database. Let’s dive in and make Reactville a bit more musical!

Technical stack

Necessary middleware

API requirements

Track model entity

Field Type Required Description
title String Yes The title of the track.
artist String Yes The artist of the track.

Required routes

HTTP Method Controller Response URI Use Case
POST create 201 /tracks Create a track
GET index 200 /tracks List all tracks
GET show 200 /tracks/:id Get a single track
PUT update 200 /tracks/:id Update a track
DELETE delete 200 /tracks/:id Delete a track

1. Add a new track

2. Get all tracks

3. Get a single track

4. Update a track

5. Delete a Track

Happy Coding!