This project is intended as my 'Hello World' program for AI. It demonstrates the basic structure of an AI application using TypeScript and Express.js.
Project is using a simple folder structure following MVC architecture. Also, this app is a monolithic application.
You must have Node.js v22, and pnpm installed on your system. To install the dependencies, run the following command:
pnpm iRun it with the following command:
pnpm devYou will need to create a .env file in the root directory of the project with the following contents:
GOOGLE_API_KEY={YOUR_GOOGLE_API_KEY}
I learned how to create a basic AI application using TypeScript and Express.js. I also learned how to use HTMX for dynamic web applications and how to create an endpoint that supports Server-Sent Events (SSE).