Backend kata using ExpressJS. Stores songs on a local directory and uses Mongo to save song metadata. Exposes REST API to create, read and delete metadata and to upload binary content.
$ git clone git@github.com:alexandra-marin/spotify.git
$ cd spotify
$ npm installBuild and run locally (default port is 3000)
$ npm run build
$ node build/server.jsTests are created with Mocha, Chai and mongo-unit. NYC reports code coverage.
$ npm test
$ npm run coverageWe use Mongo to store metadata and a configurable folder to store songs.
You can configure the connection and the local path in for each environment in src/config.js.
- add minifier to reduce bundle size
- find a better way to import folders and subfolders
- add CI/CD
- add static analysis tool and reporter
- replace content api with static server (e.g. nginX)