This is a simple todo list web application.
$ npm install
The server will run on localhost:3000.
$ npm run dev
$ npm run build
$ npm start
Actions | URL | HTTP Method | Request | Response |
---|---|---|---|---|
List all todos | /api/todos | GET | -- | Todo JSON |
Delete completed | /api/todos | DELETE | -- | -- |
Add a todo | /api/todos | POST | Todo JSON | -- |
Get by id | /api/todos/:id | GET | -- | Todo JSON |
Delete by id | /api/todos/:id | DELETE | -- | -- |
Update by id | /api/todos/:id | PUT | Todo JSON | -- |
MIT