Slothub relies on 4 distributed processes. In a real-world scenario, you would deploy these using container clusters such as AWS ECS (Fargate). For this workshop, we will start them sequentially on your local machine using the created .env files. Ensure you have the .env settings mentioned in the report.md.
The backend manages application logic and connects to the PostgreSQL database.
backend/ folder.DB_HOST, JWT_SIGNER_KEY, email configurations, and AWS credentials to backend/.env.# Using Maven wrapper
./mvnw spring-boot:run
The Spring Boot portal will be live on http://localhost:8080.
The AI service manages AWS S3 and OpenAI API prompts.
AI/ folder.OPENAI_API_KEY and AWS configs are loaded in AI/.env.uvicorn main:app --host 0.0.0.0 --port 8000
This service handles generative requests on http://localhost:8000/api/v1.
For tutoring interactions and theory lookup via RAG.
agent-core/ folder.LOCAL_DEV=1 for testing the memory locally rather than forcing an AWS Bedrock invocation.pip install -r requirements.txt).The unified user portal.
frontend/ folder.VITE_API_BASE_URL to the Spring backend URL and VITE_FAST_API_BASE_URL to the Python API in frontend/.env.npm install
npm run dev
Visit http://localhost:5173 locally. Log in, request materials from uploaded PDFs, and interact with the AI chat system to verify that the microservices are integrated perfectly!