Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Project Mongo API

Replace this readme with your own information about your project.

Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
This project is a RESTful API built using MongoDB with Mongoose. The API serves data from a music dataset, providing endpoints to retrieve information about all tracks or individual tracks by ID.

## The problem

Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next?
I approached the problem by planning the structure of the data and required endpoints and designed a Mongoose schema to map the dataset to the MongoDB database. The endpoints can retrieve a list of all tracks or retrieve details of a single track by its unique ID. The API also supports filtering and sorting. Tracks can be filtered by artist, genre, bpm, and popularity. Tracks can also be sorted by specified fields in ascending or descending order.

I used Node.js and Express for building the API and MongoDB Atlas as the cloud-hosted database. I used Mongose for modeling and interacting with the database and Render for deployment.

If I had more time I would enhance the model and add additional query parameters to allow users to search for tracks based on attributes like danceability and energy.

## View it live

Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
https://project-mongo-api-ww5r.onrender.com/
Loading