AI Treasure Generator API
nvm use
npm install
npm run build
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
Changes can be applied in real-time:
npm run watch
npm run start:dev
No need to build or run a server:
npm run test
npm run watch
npm run start:dev
curl localhost:3000/api/treasures/random