In this project, I have gone through the most CRUCIAL operations in web development... Have you guessed it yet? It's CRUD!
Given a database stored locally using a JSON file, this API supports:
-
Retrieve artists
- Get all artists
- Get a single artist by ID
(GET)
-
Add a new artist
- Create a new artist with a rating
(POST)
- Create a new artist with a rating
-
Update an artist
- Modify an artist’s name and/or rating using their ID
(PUT)
- Modify an artist’s name and/or rating using their ID
-
Delete an artist
- Remove an artist from the collection
(DELETE)
- Remove an artist from the collection
- Node.js – JavaScript runtime
- Express.js – Web framework for building REST APIs
- lowdb – Lightweight local JSON database
- UUID – Unique ID generation
- Postman – API testing and request validation
- Data is persisted locally in a JSON file (
db.json) - All routes follow RESTful API conventions
- API endpoints were tested using Postman
This project serves as a hands-on introduction to building a REST API and understanding how CRUD operations work together in a real backend workflow.