This feature is an audio player
localhost:5001/songs/:id
Dynamically renders a song based on id of the entrypoint url.
/display/song/:songId
Retrieve a song based on id.
Query Params | Type |
---|---|
songId |
number |
Name | Type |
---|---|
song_id |
int |
song_name |
string |
upload_time |
int |
tag |
string |
song_art_url |
string |
background_light |
string |
background_dark |
string |
waveform_data |
JSON |
song_duration |
int |
comment_id |
int |
comment |
string |
username |
string |
timestamp |
int |
artist_name |
string |
/display/comment/:songId
Add a comment to a song.
Name | Type |
---|---|
songId |
number |
comment |
string |
userId |
number |
timestamp |
dateTime |
/display/comment/:songId
Delete a comment from a song
Query Params | Type |
---|---|
songId |
number |
commentId |
number |
/display/song/:songId
Update a song's name
Query Params | Type |
---|---|
songId |
number |
songName |
string |
- Node 6.13.1
From within the root directory:
npm install
From within the root directory, do each of the following:
- Run webpack to build bundle.js
npm run build
- Start the server at port 5001
npm start