API ai chat-completion system using openai gpt-3.5-turbo model api. Includes CRUD routes protected using jwt auth.
Express
JavaScript
MongoDB
I am using a custom based architecture which i created for this project, each unit of this project is treated as module which contains a controller, service & routes.
-
Clone repository -
$ git clone https://github.com/usernameisleye/superchat-ai-api.git
-
Install dependencies -
$ cd supercaht-ai-api
-
Install dependencies -
$ yarn/npm install
-
Create a new file
.env
if it doesn't exist and copy the contents of.env.example
into it to be able to run your server on production environment.
-
Start up the server - Run
$ npm start
|$ npm run dev
-
Server should be running on http://localhost:2020/ by default
- Start up
$ npm run test
/gpt
Use this route to get all chats and also send chats
/user
Use this route to create and authenticate users
If you need help using this API, have feature request or want to have extended functionality, feel free to contact via email: