It's a simple api of a TODO APP to use any frontend (Web, Mobile, Desktop, ...).
It's implemented in NodeJS with Typescript, but it could be whatever technology is used.
# PNPM
$ pnpm install
# NPM
$ npm install
# YARN
$ yarn
Route | Method | Description |
---|---|---|
/todos | GET | Receive All Todos |
/todos | POST | Create a new todo |
/todos/:id | GET | Receive todo by id |
/todos/:id/toggle | POST | Toggle completed field |
/todos/:id | DELETE | Delete todo by id |
/todos/:id | PUT | Update todo by id |
# PNPM
$ pnpm start
# NPM
$ npm run start
# YARN
$ yarn start
If you is using pnpm
and to use (pre/pos)Script run that: pnpm config set enable-pre-post-scripts true