https://github.com/harsh-oo7/ai-todo-app
The AI Todo App is an intelligent task management application that leverages OpenAI's GPT model to provide a conversational interface for managing your to-do list. Users can interact with the app using natural language to add, view, update, and delete tasks. The app uses a PostgreSQL database to store tasks and Drizzle ORM for database interactions
https://github.com/harsh-oo7/ai-todo-app
docker-compose drizzle-orm nodejs openai postgres
Last synced: 3 months ago
JSON representation
The AI Todo App is an intelligent task management application that leverages OpenAI's GPT model to provide a conversational interface for managing your to-do list. Users can interact with the app using natural language to add, view, update, and delete tasks. The app uses a PostgreSQL database to store tasks and Drizzle ORM for database interactions
- Host: GitHub
- URL: https://github.com/harsh-oo7/ai-todo-app
- Owner: Harsh-oo7
- Created: 2025-02-02T15:01:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T15:36:00.000Z (over 1 year ago)
- Last Synced: 2025-02-12T10:25:38.840Z (over 1 year ago)
- Topics: docker-compose, drizzle-orm, nodejs, openai, postgres
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI Todo App
This is an AI-powered Todo List application that allows users to manage tasks by adding, viewing, updating, and deleting them. The application uses OpenAI's GPT model to interact with users and perform actions on a PostgreSQL database.
## Project Structure
## Setup
### Prerequisites
- Node.js
- Docker
- PostgreSQL
### Installation
1. Clone the repository:
```
git clone git@github.com-Harsh-oo7:Harsh-oo7/ai-todo-app.git
cd ai-todo-app
```
2. Install dependencies:
```
npm install
```
3. Create a .env file in the root directory with the following content:
```
DATABASE_URL=postgresql://admin:admin@localhost:5431/postgres
OPENAI_API_KEY=your_openai_api_key
```
4. Start the PostgreSQL database using Docker:
```
docker-compose up -d
```
5. Generate and migrate the database schema:
```
npm run generate
npm run migrate
```
## Setup
1. Start the application:
```
node index.js
```
### Example Interaction
```
>> Add a task for shopping groceries.
Output: Can you tell me what all items you want to shop for?
>> I want to shop for milk, kurkure, layes.
Output: Your todo has been added successfully
```