NBS-LLC / craift

AI Treasure Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The crAIft API

AI Treasure Generator API

prerequisites

installing

nvm use
npm install

building

npm run build

configuring

A Google Cloud account must be active:

> gcloud init
> gcloud auth application-default login

In addition to these environment variables:

  • CRAIFT_AI_PROJECT_ID - The id of a Google Cloud project with Vertex AI enabled

developing

Changes can be applied in real-time:

npm run watch
npm run start:dev

testing

No need to build or run a server:

npm run test

usage

npm run watch
npm run start:dev
curl localhost:3000/api/treasures/random

About

AI Treasure Generator


Languages

Language:TypeScript 100.0%