A backend application for managing students and courses built with NodeJS, ExpressJS, and EJS template engine.
- Student management (Create, Read, Update, Delete)
- Course management
- Server-side rendering with EJS
- Input validation and error handling
- Organized project structure
- NodeJS
- ExpressJS
- EJS
- MySQL
- Git
- Postman
├── controllers/ # Route handlers
├── middleware/ # Middleware (auth, validation)
├── models/ # Database models
├── public/ # Static resources
├── routers/ # API & view routes
├── utils/ # Helper utilities
├── views/ # EJS templates
├── app.js # Server startup
├── .env.example # Env config sample
└── README.md
Clone the repository:
git clone https://github.com/TanHuy2k2/studentMM.git
cd studentMM
npm install
🔑 Environment Variables
Create a .env file in the root directory:
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=yourpassword
DB_NAME=student_db
PORT=3000
▶️ Run the Project
npm start
Open browser:
http://localhost:3000
👨💻 Author
Nguyen Tan Huy
GitHub: https://github.com/TanHuy2k2
Email: tanhuyqn6789@gmail.com