- Node (>=v20.15.0)
- Docker
- Docker Compose
Configure the required environment variables for the application. You can add them to your .env
file or export them directly in your environment.
DB_HOST=127.0.0.1
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=password
DB_DATABASE=summarizer
REDIS_CONNECTION=local
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
OPENAI_API_KEY="<YOUR OPENAI API KEY>"
Run the following command to start your Docker containers in detached mode:
docker compose up -d
Create a PostgreSQL database named summarizer
.
Execute the migrations to set up your database schema:
node ace migration:run
Start the development server:
npm run dev
Finally, start the job worker:
npm run start:worker