Tusgai Dugaar is a Django-based backend system that powers various telecom services through SMS commands and REST APIs. It enables internal staff, customers, and external systems to interact with subscriber data, recharge services, and manage special number-based features.
- Telecom staff can send a citizen's ID number to
400
. - The system responds with:
- Whether the ID is registered
- List of phone numbers linked to the citizen
- Get user info by ID number or phone number via REST API
- Register user if they are not in the system
- Secured API endpoints for integration with other platforms
- Users on postpaid plans can send an SMS to
510
to buy data packages - The system validates eligibility using internal algorithms
- If valid, the system performs automatic recharge using account balance
- A user can text
555
to:- Link another user to their account
- Allow unlimited free communication between group members
- Optionally recharge another member’s account via SMS
- Python 3
- Django
- MySQL
- Django REST Framework (DRF)
- SMS gateway (via telecom provider)
- JSON / Postman for API testing
git clone https://github.com/batbyr-hub/tusgaidugaar.git
cd tusgaidugaar
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver