Skip to content

nashtech-garage/nodejs-openai-chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-openai-chatgpt

This project connect to openai for tutorial

Diagram

sequenceDiagram
    participant User
    participant Frontend
    participant Backend
    participant OpenAPI

    User->>Frontend: Request interaction
    Frontend->>Backend: Call API
    Backend->>OpenAPI: Fetch data from OpenAPI
    OpenAPI->>Backend: Return data
    Backend->>Frontend: Return result
    Frontend->>User: Display result
Loading

Back-end

Access to folder: back-end/back-end-openai-api

Change env_example to .env, update OpenAI API Key

Run npm run start

Front-end

Access to folder: front-end/chat-app

Change env_example to .env, update back-end URL: http://localhost:3001

Run npm run dev

About

This project connect to openai for tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published