- Node JS
- TypeScript
- KOA
- TypeORM
- Open AI
- Install node, npm and postgres
- Create an empty db
- Update app-data-source.ts with the db details. Since an ORM has been used the tables will be created on its own.
- This project uses Open AI so an Open AI API Key is required. As of writing this, Open AI has discontinued its paid service as a minimun wallet load of 5 USD is required to use its APIs. Set this key in
.env
. - In the env file we can also opt for different models and temperature
- Since it is a TypeScript project we need to compile it first so run
tsc
- Now we run
npm run server
to start the service - Postman Collection for the APIs are provided in the repo.
- Integrate a testing framework like Mocha/Chai
- Dockerize the service
- Integrate apidocs
- Include validation of API calls from FE
- Improve error handling