This server acts as the primary data processing, storage, AI integration, and core infrastructure interface behind the SAPTHAGIRI NPS University Portal backend.
Our robust backend relies on industry-standard technologies with specialized AI augmentation integrations.
- Environment: Node.js & Express.js wrapper (
express,express-async-handler) - Database: MongoDB utilizing
mongoosemodeling. - Security & Validation:
bcryptjs- For hashing and safeguarding user credentialsjsonwebtoken- For JSON-based stateless secured authenticationexpress-rate-limit- DDoS protection and request throttlingcors- Configuring cross-origin setups perfectly
- Integrations:
nodemailer- Built internally to interact with SMTP setups for verification, notifications, and alerts.openai/@google/generative-ai- AI features to boost educational insights, and automations within the user lifecycle interactions.
Store the following config details as a .env in the root /snpsubknd/ directory:
PORT=... # Preferred Dev Server Port
MONGODB_URI=... # Your target remote/local MongoDB driver link
JWT_SECRET=... # Strong cryptographic string
EMAIL_USER=... # Target system SMTP configuration email target
EMAIL_PASS=... # Standard SMTP app password
OPENAI_API_KEY=...
GOOGLE_API_KEY=...Development environments include nodemon out of the box so updates mirror seamlessly across code edits to your running server dynamically:
# Standard dependency initialization
npm install
# Start development daemon (Listens up for direct edits)
npm run dev
# Starts statically
npm start