Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/badiwidya/to-do-list-api

Todolist REST API
https://github.com/badiwidya/to-do-list-api

cors crud express mongoose morgan nodejs rest-api todolist typescript

Last synced: 4 days ago
JSON representation

Todolist REST API

Awesome Lists containing this project

README

        

# Get Started

This is a to do list REST API, integrated with Mongoose to organize tasks along with custom tags.

## Installation

1. Clone the repository:
```sh
git clone https://github.com/badiwidya/to-do-list-api.git
```
2. Navigate to the project directory:
```sh
cd to-do-list-api
```
3. Install dependencies:
```sh
npm install
```

## Usage

1. Run npm build:
```sh
npm run build
```
2. Start the project:
```sh
npm start
```
3. Use an API client like Postman to interact with the endpoints.

## Endpoints

### Tasks

- `GET /tasks` - Get all tasks
- `POST /tasks` - Create a new task
- `PUT /tasks/:id` - Edit a task
- `DELETE /tasks/:id` - Delete a task

### Tags

- `GET /tags` - Get all tags
- `POST /tags` - Create a new tag
- `DELETE /tags/:id` - Delete a tag

*I am still learning, if there is a need to fix, please tell me.*