Skip to content

This app is made to understand the concept of Express web framework in NodeJS.

Notifications You must be signed in to change notification settings

susmita-karkii/express-todo-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing the app

clone the repository


   git clone https://github.com/self-tuts/express-todo-app.git 


Install the libraries from npm


    npm install


Running the app


    node app.js


Running Test cases


   ./node_modules/mocha/bin/mocha test/NAME_OF_THE_FILE 


Database connection

Database connection is present in app/task/taskController.js

Update this file with your own database credentials

REST API exposed

Get all the task


   GET  http:\\ip-address:port\task


Get Task by id


   GET  http:\\ip-address:port\task\id\:taskId


Create Task


   POST  http:\\ip-address:port\task


Delete Task by id


   DELETE  http:\\ip-address:port\task\id\:taskId


Update Task status by id


   PUT  http:\\ip-address:port\task\id\:taskId\status\:taskStatus


About

This app is made to understand the concept of Express web framework in NodeJS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%