Skip to content

MoNader99/Backend-team

Repository files navigation

Get the Code

git clone https://github.com/MohammedNader99/Backend-team.git

Dependencies

  • NodeJS version 13.9.0
  • MongoDB version 1.20.5

Note :open using any text editor ex: Visual studio code, Atom..

Development server

Navigate to http://localhost:8000/. The app will automatically reload

Build

Install

you can run these commands to install :

npm install														# Install dependencie

Run

Once installed, you can launch with this command:

# Running 
node Index.js

seeds and modules example

Playlist Module:

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"
        ]
    }
]

Running unit tests

npm test               

Generating Doc file

npm run doc

Generating API Doc

cd API
apidoc -f “api\.js$”

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published