Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

review-system

Prerequisites

  • Node.js
  • Docker (for MySQL, via docker-compose.yml)

Setup

  1. Copy the env file and fill in your Groq API key:

    cp .env.example .env
    
  2. Start MySQL (and the backend, if you want it containerized):

    docker compose up -d mysql
    

    Migrations in db/migrations/ run automatically on first boot via docker-entrypoint-initdb.d.

  3. Install backend dependencies:

    cd backend
    npm install
    

Running the backend

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages