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

Zeabur

Deploy on Zeabur

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

Available Now

  • Continuous dialogue with the history of chat
  • Zeabur deployment

Overview Project

Database Server

Releases

No releases published

Packages

No packages published