https://github.com/rootstrap/gemini-nodejs
NodeJS REST-API to interact with Google Gemini
https://github.com/rootstrap/gemini-nodejs
Last synced: 4 months ago
JSON representation
NodeJS REST-API to interact with Google Gemini
- Host: GitHub
- URL: https://github.com/rootstrap/gemini-nodejs
- Owner: rootstrap
- Created: 2023-12-29T16:06:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-29T16:21:09.000Z (about 2 years ago)
- Last Synced: 2025-06-12T01:05:06.249Z (8 months ago)
- Language: TypeScript
- Size: 811 KB
- Stars: 6
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Gemini NodeJS .TS Api
This project includes the boilerplate to interact with Gemini from a basic rest-api made in Node.js with Express + Typescript.
## Basic Requirements
1. Install Node.js [https://nodejs.org/en/download/](https://nodejs.org/en/download/)
2. Install `TypeScript`
```sh
npm install -g typescript
```
3. Install required dependencies
```sh
npm install
```
4. Get an Gemini API key: [https://makersuite.google.com/app/apikey](https://makersuite.google.com/app/apikey)
5. Update your `.env` file with your API_KEY
## Build and Run
To build js from typescript source.
```sh
npm run build
```
To start the server from the compiled folder (/dist).
```sh
npm run start
```
## Demo
