Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ SMS Public

Student Management System (SMS) is a simple record management for students records using MongoDB, Express.js, React.js, and Node.js (MERN stack)

License

Notifications You must be signed in to change notification settings

mdaashir/SMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

43 Commits

Repository files navigation

Student Management System

A full-stack web application for managing student records built with React, Node.js, Express, and MongoDB.

Features

  • Complete CRUD operations for student records
  • Modern UI with Tailwind CSS and dark mode support
  • Search and filter capabilities
  • Responsive design for all devices
  • RESTful API with proper validation
  • Error handling and notifications

Production Deployment

Prerequisites

  • Docker and Docker Compose installed
  • Git

Deployment Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/sms.git
    cd sms
  2. Deploy with Docker Compose:

    docker-compose up -d
  3. Access the application:

Environment Variables

Frontend Environment Variables

Create a .env file in the Frontend directory:

VITE_API_URL=http://localhost:5000/api
VITE_APP_TITLE=Student Management System

Backend Environment Variables

Create a .env file in the Backend directory:

PORT=5000
MONGODB_URI=mongodb://mongodb:27017
MONGODB_DBNAME=student_management
NODE_ENV=production
ALLOWED_ORIGINS=http://localhost:5173,https://yourdomain.com

Development Setup

Backend Setup

  1. Navigate to the Backend directory:

    cd Backend
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

Frontend Setup

  1. Navigate to the Frontend directory:

    cd Frontend
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

Architecture

  • Frontend: React.js with Vite, Tailwind CSS, React Router
  • Backend: Node.js, Express.js
  • Database: MongoDB
  • API Documentation: Swagger
  • Containerization: Docker

Production Optimizations

  • Multi-stage Docker builds for smaller images
  • Nginx for serving static files and API proxying
  • Compression for faster load times
  • Security headers with Helmet.js
  • Error boundaries for graceful error handling
  • Lazy loading for improved performance
  • Connection pooling for database reliability
  • Health checks for all services

About

Student Management System (SMS) is a simple record management for students records using MongoDB, Express.js, React.js, and Node.js (MERN stack)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /