Skip to content

alfasin/chatgpt

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

This NodeJS/NestJS webserver that has the following: logging (using nest), documentation (using swagger), metrics reporting (using prom-client), and a route that can be used to fetch the metrics that were recorded!

Further, it has a route that calls openAI API, submits a prompt and returns the response from chatGPT.

What's really cool about this server is that most of it was written by chatGPT :)

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

The docs (swagger) should be available under: http://localhost:3000/docs

docs page

ChatGPT example

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Stay in touch

License

licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published