Skip to content
IPMSandPublic

About

CiTTA : City Community Web APP : Sri Lanka

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

80 Commits

Folders and files

Repository files navigation

MAIN/MASTER BRANCH of CITTA

Repository Branches & Deployment Guide 🌆

Note for Supervisor:

  • The master branch should be considered the primary evaluation branch.
  • It contains the original submitted implementation together with a small stability fix related to temporary AI API availability for LLM Model(RAG) issues encountered during the submission period.

Branch Structure

master

Stable Main Branch

  • master
  • Contains the finalized core implementation corresponding to the submitted project.
  • Includes essential fixes for AI service processing stability.

post-master

Active Development Branch

  • post-master
  • Contains the latest bug fixes and UI refinements.
  • Resolves responsive layout inconsistencies and minor backend logic issues.

save-submitted

Archived Submission Snapshot

  • saved-submitted
  • Preserves the exact state of the original .zip project submission for reference.

Prerequisites & Configuration

Before running the system, configure the backend and AI service credentials.

These configuration files are excluded from version control for security purposes.

Backend Configuration

Update your backend configuration file:

{
  "AllowedHosts": "*",
  "MongoDB": {
    "ConnectionString": "your_mongodb_connection_string",
    "DatabaseName": "your_database_name"
  },
  "Jwt": {
    "Key": "your_jwt_secret_key",
    "Issuer": "YourIssuerName",
    "Audience": "YourAudienceName"
  }
}

AI Service Configuration

Inside the AI service directory, create or modify config.py:

# config.py

MONGO_URI = "your_mongodb_connection_string"
DB_NAME = "your_database_name"
AI_API_KEY = "your_ai_service_api_key"

Running with Docker

The frontend, backend, and AI service can be started together using Docker:

./run.sh

Local Development & Debugging

To run services individually outside Docker, use separate terminal instances.

Frontend (React + Mantine)

cd frontend
npm install
npm run dev

Backend (.NET)

cd backend
dotnet run

AI Service (FastAPI)

cd ai-service
uvicorn main:app --reload

Local Debugging Note

When running services locally without Docker, update the AI service base URL inside the chatbot controller.

Replace:

http://ai-services

With:

http://127.0.0.1:<AI_PORT>

This allows the backend to communicate correctly with the locally running AI service.

About

CiTTA : City Community Web APP : Sri Lanka

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages