This is the backend server for my personal full-stack developer portfolio. Built using Node.js, Express, and MongoDB, it handles contact form submissions, admin login, and provides a secure admin dashboard endpoint to view contact messages.
- Secure admin login using JWT
- Contact form submission and storage in MongoDB
- Protected route for viewing messages
- Global error handler
- CORS enabled and .env configuration support
- Organized folder structure (Controllers, Routes, Models, Middleware)
- Node.js
- Express.js
- MongoDB + Mongoose
- JWT (JSON Web Tokens)
- dotenv
- CORS
POST /api/auth/login
– Admin loginPOST /api/auth/register
– Disabled by default for security
POST /api/contact/submit
– Submit contact formGET /api/contact/all
– Get all messages (protected by token)
Hari Krishnan Nagarajan
Full Stack Developer | MERN Stack Enthusiast
Email: [email protected]
GitHub: github.com/Harikrish58
LinkedIn: linkedin.com/in/hari-krishnan-283360138