- A user can add, edit and delete 'todo'
- Each todo can be marked as complete
- Each todo can have one optional attachment
- One person cannot access the another person todo
- Node js
- Express js
- MongoDB
Site URL = http://localhost:3000;
URL: __Site URL__/api/todos/users/{username}
Request Type: GET
Example: http://localhost:3000/api/todos/users/{username}
URL: __Site URL__/api/todos/{id}
Request Type: GET
URL: __Site URL__/api/todos
Request Type: POST
Parameter: {
"username" : "",
"todo" : "",
"isDone" : "",
"hasAttachment" : "",
}
URL: __Site URL__/api/todos/{id}
Request Type: PUT
Parameter: {
"todo" : "",
"isDone" : "",
"hasAttachment" : "",
}
URL: __Site URL__/api/todos/{id}
Request Type: DELETE
-
Clone and open the project then install all npm package by
npm install
-
Now go to config/ directory and rename the config.json.example to config.json
-
Update the config.json with your mongo db configuration.
-
Now run project by
node app.js