Skip to content

nileshkadam07/node-project-struct

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-project-struct

  • A simple node js web api that demonstrates node js project structure.

#features

  • expressjs + mongoose
  • logger
  • clustering
  • JWT authentication

#install

  • npm install

run

  • grunt

debug

  • grunt debug

tests & reports

  • grunt build

#api methods

  • GET - api/todos - Get all todos

  • GET - api/todos/:id - Get todo by id

  • UPDATE - api/todos/:id - Update todo by id (Authorized Request)

  • DELETE - api/todos/:id - Detele todo by id (Authorized Request)

  • POST - api/todos - Create new Todo (Authorized Request)

  • POST - api/auth/register - Register new user

  • POST - api/auth/login - login credentials (username, password) returns the Json web token for authorized requests

  • Authorized Requests

    • Set Authentication header to - "Authentication: JWT (generated token)"

#Todos

  • Create more tests

About

Nodejs Project Structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%