This is the backend repository for the Orpheus-music-app repository.
- Clone the repository:
git clone https://github.com/AlejandroLuisHC/Orpheus-Music-App-Backend-API.git
- Install the dependencies:
npm install
- Create a
.env
file in the root of the project and set the environment following the stucture provided in the.env.example
- Start the development server:
npm run dev
- Open the browser and navigate to
https://orpheus-music-app.netlify.app/
to access the API.
You need to install nodejs
Go to NodeJS web page download and install the program.
- GET
/
: Retrieves a list of all users. - GET
/:id
: Retrieves a specific user by theirid
. - POST
/
: Creates a new user. - DELETE
/:id
: Deletes a specific user by theirid
. - PATCH
/:id
: Updates a specific user by theirid
.
- GET
/
: Retrieves a list of all playlists. - GET
/:id
: Retrieves a specific playlist by theirid
. - POST
/
: Creates a new playlist. - DELETE
/:id
: Deletes a specific playlist by theirid
. - PATCH
/:id
: Updates a specific playlists by theirid
.
- GET
/
: Retrieves a list of all tracks. - GET
/:id
: Retrieves a specific track by theirid
. - POST
/
: Creates a new track. - DELETE
/:id
: Deletes a specific track by theirid
. - PATCH
/:id
: Updates a specific track by theirid
.
- GET
/
: Retrieves a list of all albums. - GET
/:id
: Retrieves a specific album by theirid
. - POST
/
: Creates a new album. - DELETE
/:id
: Deletes a specific album by theirid
. - PATCH
/:id
: Updates a specific album by theirid
.
- GET
/
: Retrieves a list of all events. - GET
/:id
: Retrieves a specific event by theirid
. - POST
/
: Creates a new event. - DELETE
/:id
: Deletes a specific event by theirid
. - PATCH
/:id
: Updates a specific event by theirid
.
- GET
/
: Retrieves a list of all genres. - POST
/
: Creates a new genre.
- GET
/
: Retrieves a list of all moods. - POST
/
: Creates a new mood.
- Express.js: A web application framework for Node.js
- Mongoose: A MongoDB object modeling tool for Node.js
- Cors: A middleware for handling CORS (Cross-Origin Resource Sharing)
- Helmet: A collection of middlewares for security-related HTTP headers
- Morgan: A middleware for logging HTTP requests
- Nodemon: A utility that automatically restarts the Node.js application when changes are detected
- Express-jwt: A middleware for validating JWTs (JSON Web Tokens)
- Jwks-rsa: A library for retrieving RSA signing keys from a JWKS (JSON Web Key Set) endpoint
- Auth0: An authentication and authorization platform for web and mobile apps
- Cloudinary: A cloud-based image and video management service for web and mobile apps
We welcome any contributions to the Orpheus-music-app (Backend API). To contribute, please follow these steps:
- Fork the repository by clicking the "Fork" button in the top right corner of this page.
- Clone the forked repository to your local machine by running
git clone https://github.com/[your-username]/Orpheus-music-app-backend.git
in your terminal. - Create a new branch for your contribution by running
git checkout -b [branch-name]
. - Make your changes and test them thoroughly.
- Commit your changes by running
git commit -m "[commit message]"
. - Push your changes to your forked repository by running
git push origin [branch-name]
. - Create a new pull request by navigating to your forked repository on GitHub, selecting the branch you just pushed, and clicking the "New pull request" button.
- Provide a clear and detailed description of your changes and why they are necessary.
- We will review your pull request and provide feedback. Once it is approved, your changes will be merged.
Thank you for your contributions! 🎉
Alex Balaguer |
Jose Mocillo |
Pau Civill |
Ezequiel Zvirgzdins |
Alejandro L. Herrero |