https://github.com/cabon-tech/sequilize-todo-app
This is a simple RESTful API with sequelize for managing todos. It allows you to perform CRUD (Create, Read, Update, Delete) operations on todos.
https://github.com/cabon-tech/sequilize-todo-app
nodejs postgresql postgresql-database sequelize sequelize-orm
Last synced: 7 months ago
JSON representation
This is a simple RESTful API with sequelize for managing todos. It allows you to perform CRUD (Create, Read, Update, Delete) operations on todos.
- Host: GitHub
- URL: https://github.com/cabon-tech/sequilize-todo-app
- Owner: CABON-TECH
- Created: 2023-11-05T17:10:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T02:20:03.000Z (almost 2 years ago)
- Last Synced: 2025-04-09T01:47:51.711Z (9 months ago)
- Topics: nodejs, postgresql, postgresql-database, sequelize, sequelize-orm
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo API
This is a simple RESTful API with sequelize for managing todos. It allows you to perform CRUD (Create, Read, Update, Delete) operations on todos.
## Features
- Get all todos
- Create a new todo
- Mark a todo as completed
- Delete a todo
## Technologies Used
- Node.js
- Express.js
- Sequelize ORM
- PostgreSQL (or any other supported database)
## Getting Started
### Prerequisites
- Node.js installed on your machine
- PostgreSQL (or any other supported database) installed and running
### Installation
1. Clone the repository:
```bash
git clone https://github.com/CABON-TECH/sequilize-TODO-app.git
### 1 Install dependencies:
```bash
npm install
```
### 2 Set up database configuration:
Make sure your PostgreSQL database is running.
Configure your database connection in config/config.json.
### 3 Run migrations:
```bash
npx sequelize-cli db:migrate
```
### 4 Start the server:
```bash
node server.js
```
# API Endpoints
### Get all todos
```bash
GET /todos
```
### Create a new todo
```bash
POST /todos
```
#### Request Body:
```json
{
"title": "Your todo title here"
}
```
### Mark a todo as completed
```bash
PUT /todos/:id
```
### Delete a todo
```bash
DELETE /todos/:id
```
### License
```
This project is licensed under the MIT License - see the LICENSE file for details.
```