This is the backend API service for the SLTMobitel EasyApply customer application portal, built using Node.js, Express, and MongoDB.
This service implements Module 01: Authentication & User Management.
Make sure you have the following installed on your machine:
- Node.js (v20 or higher recommended)
- MongoDB (Running locally, in Docker, or an active MongoDB Atlas cluster)
Run the following command inside the Easy-Apply-Backend directory:
npm installCreate a .env file in the root of Easy-Apply-Backend (use .env.example as a template):
PORT=5000
NODE_ENV=development
MONGO_URI=mongodb://127.0.0.1:27017/easyapply
JWT_ACCESS_SECRET=your_access_secret_key_here
JWT_REFRESH_SECRET=your_refresh_secret_key_here
JWT_ACCESS_EXPIRY=15m
JWT_REFRESH_EXPIRY=7dIf you have Docker installed and want to run a local database instance:
docker run -d -p 27017:27017 --name easyapply-db mongo:latestTo start the server in development mode (with auto-reload on save):
npm run devThe server will start running on http://localhost:5000.
Successful authentication, user-management, KYC, application/request, form,
comment, and appointment actions are stored in the audit_logs MongoDB
collection. Administrators can retrieve them with:
GET /api/admin/audit-logs?page=1&limit=25&search=REQ-1024&action=STATUS_UPDATE&module=Application&from=2026-01-01&to=2026-01-31
The endpoint requires an administrator Bearer token. search, action,
module, from/startDate, and to/endDate are optional; results are
sorted newest first and include pagination metadata.