This is a Node.js application with Express, Sequelize, and PostgreSQL for implementing a CRUD API for managing tracks and playlists.
Before you begin, ensure you have the following installed:
- Node.js and npm: Node.js Downloads
- PostgreSQL: PostgreSQL Downloads
-
Clone the repository:
git clone https://github.com/sibudar/Ayoba.git cd your-project
-
Install packages
npm install
- Run migrations
cd sequelize
npx sequelize-cli db:migrate
- Start application on the root file of the project
npm start
Tracks:
POST /api/tracks: Create a new track.
GET /api/tracks: Get all tracks.
GET /api/tracks/:id: Get a specific track by ID.
PUT /api/tracks/:id: Update a track by ID.
Playlists:
POST /api/playlists: Create a new playlist.
GET /api/playlists: Get all playlists.
GET /api/playlists/:id: Get a specific playlist by ID.
PUT /api/playlists/:id: Update a playlist by ID.