Skip to content

Latest commit

Β 

History

History
107 lines (73 loc) Β· 3.76 KB

File metadata and controls

107 lines (73 loc) Β· 3.76 KB

πŸ› οΈ SentinelOps Local Setup Guide

Welcome to SentinelOps! This guide is explicitly designed to get you up and running locally from scratch in under 5 minutes. We use Docker to ensure the setup is completely reproducible and standardized.

Note to Hackathon Judges / Evaluators: We highly recommend following this guide closely. It spins up the heavy AI workers and databases inside Docker, ensuring you don't have to install Redis or PostgreSQL locally.


πŸ—οΈ 1. Prerequisites

Before you begin, ensure you have the following installed and running:


πŸ”§ 2. Environment Configuration

πŸ“‘ Backend Configuration

  1. Navigate to the backend directory:
    cd sentinelops-backend
  2. Create your .env file from the provided template:
    cp .env.example .env
  3. Open .env and fill in your keys:
    • OPENAI_API_KEY: Required for LLM Root Cause Analysis. Get one from OpenAI.
    • GITHUB_TOKEN: Required to sync repositories and post commit statuses. Create a Classic PAT with repo scopes here.

🎨 Frontend Configuration

  1. Navigate to the frontend directory:
    cd ../sentinelops-frontend
  2. Create your .env.local file from the template:
    cp .env.local.example .env.local

πŸš€ 3. Running the Project

Phase A: Start the Core Infrastructure (Docker)

In your terminal (from the sentinelops-backend folder):

docker compose up -d

Wait ~30 seconds for PostgreSQL and Redis to initialize. This command starts the database, in-memory cache, Celery worker for background AI tasks, and Celery beat for scheduling.

Phase B: Power Up the AI Models & Demo Data

Run these one-time commands to prep the system with realistic data:

# 1. Train the Machine Learning Risk Model locally
docker compose exec api python -m app.ml.train

# 2. Seed the Demo Data (This generates mock incidents, risks, and health tiles)
docker compose exec api env PYTHONPATH=. python scripts/seed_demo_data.py

Phase C: Launch the Dashboard

Open a new terminal tab:

cd sentinelops-frontend
npm install
npm run dev

🌐 4. Explore the Features

Take SentinelOps for a spin! Once everything is running, explore these URLs:


πŸ’‘ Troubleshooting

  • Redis Connection Errors: Ensure Docker Desktop is actually running. If containers aren't spinning up, run docker compose down -v followed by docker compose up -d --build.
  • LLM Expalantions Failing: Ensure your OPENAI_API_KEY is valid and has sufficient credits.
  • Port Conflicts: The backend binds to 8000 and 5432 (Postgres). The frontend binds to 3000. Ensure these ports are free.

πŸ›‘οΈ Built with SentinelOps Decision Intelligence