https://github.com/mulatinho/todo-app
an simple tasks management software
https://github.com/mulatinho/todo-app
bootstrap4 expressjs jquery nodejs pug rest-api simple-project tasks
Last synced: 3 months ago
JSON representation
an simple tasks management software
- Host: GitHub
- URL: https://github.com/mulatinho/todo-app
- Owner: mulatinho
- Created: 2019-05-21T18:14:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-05T13:24:04.000Z (almost 7 years ago)
- Last Synced: 2025-07-31T18:34:13.098Z (11 months ago)
- Topics: bootstrap4, expressjs, jquery, nodejs, pug, rest-api, simple-project, tasks
- Language: JavaScript
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A simple task management
[](http://travis-ci.org/mulatinho/todo-app)
## Introduction
This is a simple task management made in node.js with express.js as backend, and using bootstrap, fontawesome, pug and jquery as frontend to make it responsive and lightweight.
## How to Execute
To execute this software you just need to type these commands:
$ npm install
$ npm start
Then you go at your browser and put the link **http://localhost:8080**
## How to Run Tests
To run all tests of this software you just need
$ npm run test
## Watch tasks endpoint
Get your token
curl -vv \
-H 'Content-Type: application/json' \
-X POST http://localhost:8080/sessions/signup \
-d '{ "inputName": "John", "inputEmail": "john.rambo@example.com", "inputPassword": "someAmazingPassword" }'
This will give you a session token
{ session_token: "e69fb1e9a50ce060a03549b3afb5d33c521dfc5fb0d8e49af2ea0c662aff9643" }
Then you can browse your tasks whenever you want
curl -vv \
-H 'Content-Type: application/json' \
-H 'Authorization: e69fb1e9a50ce060a03549b3afb5d33c521dfc5fb0d8e49af2ea0c662aff9643' \
http://localhost:8080/watch-tasks
This will produce something like that
[{"id":"4dbdbaa9-9029-4705-9cdb-936016a0cd25","title":"xczvxzx","description":"zxczxczxcxc","end_date":null,"tags":"none","active":true,"createdAt":"2019-05-23T21:49:58.605Z","updatedAt":"2019-05-23T21:49:58.616Z","user_id":"854c67da-9509-4a2c-bed9-836e338eaa52","task_id":null,"user":{"id":"854c67da-9509-4a2c-bed9-836e338eaa52","name":"afassafa","email":"saafs","avatar_url":null}}]
You could also pass filters like page and search
curl -vv \
-H 'Content-Type: application/json' \
-H 'Authorization: e69fb1e9a50ce060a03549b3afb5d33c521dfc5fb0d8e49af2ea0c662aff9643' \
http://localhost:8080/watch-tasks?page=2&search=title
## Screenshots
Screenshot 01 | Screenshot 02 | Screenshot 03
:------------:|:-------------:|:-------------:
 |  | 