This project includes the boilerplate to interact with Gemini from a basic rest-api made in Node.js with Express + Typescript.
- Install Node.js https://nodejs.org/en/download/
- Install
TypeScript
npm install -g typescript
- Install required dependencies
npm install
- Get an Gemini API key: https://makersuite.google.com/app/apikey
- Update your
.env
file with your API_KEY
To build js from typescript source.
npm run build
To start the server from the compiled folder (/dist).
npm run start