Skip to content

KyoTranKMA/DRP-Chat-Bot-RestAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRP API

Use Coze to create ChatBot for assitants food.

Services

  • Login with JWT
  • Sign up with Email send OTP
  • Chatting with Bot
  • Chatting with History Conversations
  • Update Profile

Deployment

Railway

Deploy on Railway

Zeabur

Deploy on Zeabur

Vercel

Deploy with Vercel

Note: Vercel's serverless functions have a 10-second timeout limit and it not avaiable for chatting with non-streaming services.

Local Deployment

  1. Set the environment variable on .env file
PORT = XXXX
## Tokens for App
ACCESS_TOKEN_SECRET_KEY = "YOUR_ACCESS_TOKEN_KEY"
REFRESH_TOKEN_SECRET_KEY = "YOUR_REFRESH_TOKEN_KEY"
## Coze Config
COZE_API_KEY = "pat_YOUR_COZE_API_KEY"
COZE_API_URL = "https://api.coze.com/open_api/v2/chat"
BOT_ID = "YOUR_COZE_BOT_ID"
## MongoDB Config
MONGO_URI = "URL_TO_CONNECT_WITH_MONGODB"
## SMPT Config
SMPT_HOST=smtp.gmail.com
SMPT_PORT=465
SMPT_SERVICE=gmail
SMPT_MAIL=YOUR_MAIL
SMPT_APP_PASS=YOUR_APP_PASSWORD


  1. Install dependencies
npm install
  1. Run the project
npm start

Usage

  1. API Document
  • Swagger

Roadmap

Coming Soon

  • Streaming Chat
  • Image support
  • Audio-to-text
  • Text-to-audio
  • Docker support

Available Now

  • Continuous dialogue with the history of chat
  • Zeabur & Vercel & Railway deployment

Overview Project

Database Server

Releases

No releases published

Packages

No packages published