An API that receives an user info and a question then access ChatGPT public api to get an answer and store in the user doc. This project is made to work with api-1-users.
Setup environment making a copy of .env.example and naming it .env
, then replace OPENAI_API_KEY value with yours.
To run this project, make sure have ran the api-1-users and have completed the environment step above, then:
- Build the docker image with the script
./build.sh
- Run a container and add it to api-1-users network with:
./docker-run.sh
I didn't built many tests, but they're set n' up with, run then by yarn install && yarn test
You could check the API Docs, built with Swagger, after running the app. through the /api-docs endpoint.