My Mp3 Streaming Server SERVER.
- Work as HTTP/1.1 REST api server
- returns JSON response and MP3 file
- Load some config on start up from
config.js
- base directory for music files
- server port
- user ids
- etc..
- Have basic security functions
helmet
bearer-auth
- Request
- Required header:
Authorization
- Required header:
- Response
- 200: Success w/
application/json
- 401: Authorization required
- 200: Success w/
- Request
- Required header:
Authorization
- Required params:
path
- Required header:
- Response
- 200: Success w/
audio/mpeg
- 400: Invalid, missing params
- 401: Authorization required
- 200: Success w/
npm start -- ./__tests__/config.json
npm t
npm run build
# put ./lib/config.json
NODE_ENV=production node ./lib/main.js ./config.json