git clone https://github.com/MohammedNader99/Backend-team.git
- NodeJS version 13.9.0
- MongoDB version 1.20.5
Note :open using any text editor ex: Visual studio code, Atom..
Navigate to http://localhost:8000/. The app will automatically reload
you can run these commands to install :
npm install # Install dependencie
Once installed, you can launch with this command:
# Running
node Index.js
It Contains (Name, Owner Id, Privacy, Cover Picture and the tracks that this playlist has)
// for example
"playlist":[
"Name":"...."
"OwnerID":"...."
"Privacy":"...."
"CoverPic":"...."
"Traks":{
"ID":[
"...."
"...."
"...."
]
}
]
Seed ex: Classics that belongs to the user whose username is Hamadaaa , it is private and contains four tracks.
// for example
"playlist":[
"Name":"Classics"
"OwnerID":"4pdf445ksdjn2as23ws26d6d"
"Privacy":"True"
"CoverPic":"default.png"
"Traks":{
"ID":[
"5e8cdc99c70aba1405d52022",
"4pdf445ksdjn2as23ws26d6d",
"5e8cdc99c70aba1405d52022"
]
}
]
npm test
npm run doc
cd API
apidoc -f “api\.js$”