Backend
Local Backend Setup
The backend provides websockets for the dashboard and APIs for the dashboard, admin console, and mobile app. Follow these steps to get it running:
Quick Start
docker-compose up
This sets up the backend and all dependencies automatically.
Prerequisites
- AWS credentials in
~/.aws/
directory (required for dev container setup) - MongoDB (automatically configured with docker-compose)
Initial Setup
- Run the backend using docker-compose
- Execute
createInitialUser.sh
from thescripts
directory inkatapp-backend
repository - This creates an admin user with full permissions for both Tenant Admin Console and Dashboard
Default credentials:
- Email: local@katapp.org
- Password: @Local123
You can modify these credentials in the script.
Database Access
The backend uses MongoDB by default. To view the data:
- Install MongoDB Compass
- Connect using the port shown at startup
- The
KatApp
database and collections will be created automatically when data is saved
For detailed API documentation, visit apidoc.katapp.org.