Giter Club home page Giter Club logo

happytodo's Introduction

๐Ÿš€๐Ÿง โœ… HappyTodo-RocketGPT-Plugin โœ…๐Ÿง ๐Ÿš€

Welcome to the ChatGPT Todo Plugin! This project is all about helping you manage your todos with ease and style, right within your ChatGPT conversations. Say goodbye to the hassle of switching between multiple apps to keep track of your tasks, and hello to an efficient and seamless experience! ๐ŸŽ‰

๐ŸŒŸ Features

  • Create, update, and delete todos for different users
  • Fetch todos for a specific user
  • Fetch all todos
  • Health check endpoint
  • OpenAPI Specification (YAML)
  • Plugin manifest and logo

๐Ÿ“š How it works

This project is built using the Rocket web framework for Rust, and uses an in-memory HashMap to store todos. The todos are organized per user, and you can perform the basic CRUD operations on them through various HTTP endpoints.

๐Ÿšฆ Getting Started

To get started, follow these steps:

  1. Ensure you have Rust installed on your machine.

  2. Clone this repository:

    git clone https://github.com/yourusername/chatgpt-todo-plugin.git
  3. Change to the project directory:

    cd chatgpt-todo-plugin
  4. Build and run the project:

    just run

Now, the Todo Plugin server should be up and running at http://localhost:8000.

๐Ÿ”ง Configuration

To configure the allowed origins for CORS, update the AllowedOrigins::some_exact array with your desired domains in the main() function. The default configuration allows localhost and the OpenAI Chat domain.

๐Ÿ“– API Endpoints

The following API endpoints are available:

  • GET /hello: Health check
  • GET /todos: Fetch all todos
  • GET /todos/<username>: Fetch todos for a specific user
  • POST /todos/<username>: Add a todo for a specific user
  • DELETE /todos/<username>: Delete a todo for a specific user
  • GET /logo.png: Fetch the plugin logo
  • GET /.well-known/ai-plugin.json: Fetch the plugin manifest
  • GET /openapi.yaml: Fetch the OpenAPI specification

๐Ÿ› ๏ธ Customization

Feel free to customize the project to fit your needs! You can:

  • Add new endpoints
  • Change the data storage method (e.g., use a database instead of an in-memory HashMap)
  • Customize the plugin logo and manifest
  • Tweak the OpenAPI specification

Happy coding and enjoy your new and improved ChatGPT Todo experience! ๐ŸŽŠ๐ŸŽ‰

happytodo's People

Contributors

jackbackes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.