- Node.js
- Docker (for MySQL, via
docker-compose.yml)
-
Copy the env file and fill in your Groq API key:
cp .env.example .env -
Start MySQL (and the backend, if you want it containerized):
docker compose up -d mysqlMigrations in
db/migrations/run automatically on first boot viadocker-entrypoint-initdb.d. -
Install backend dependencies:
cd backend npm install
From backend/, with MySQL up:
npm run dev
This starts the Fastify server on PORT (default 3000) with auto-restart on file changes.
Use npm start for a plain run without watch mode.
The backend reads its config from env vars (PORT, MYSQL_HOST, MYSQL_PORT, MYSQL_USER,
MYSQL_PASSWORD, MYSQL_DATABASE, GROQ_API_KEY, GROQ_MODEL) — see backend/src/config.js
for defaults.