Skip to content

datastax/raffle-nextjs

Repository files navigation

DataStax Vector-powered Raffle App

Install

  • Clone this repo.
  • npm install

Configure

  • Create a free Astra account
  • Create a Vector Database
  • Create a collection called "raffle"

cp .env-example .env

Fill-in values for your Astra DB and OpenAI keys

Admin

Run node scripts/admin.mjs start to create a new raffle

Raffle App

Run npm run dev to start your local server. Deploy the app to run it in production.