This project is an express application that serves songs. It has 3 endpoints:
/songs
: get all songs/songs/:id
: get one song by id/songs/:id/file
: get the audio file of the song
npm install
npm run test
to run the test suitenpm start
to start the project. It runs by default on port 3000,PORT=3001 npm start
to change it
index.js
is the entry point of the projectsrc/server.js
is the actual express serversrc/db/
contains db methods and the json data for our musicassets
contain the song files
- Add end to end tests to ensure all work good
- Use a proper database