This NodeJS assignment is a simple web application that allows two types of users (Students and Teachers) to interact with the system. The application uses HTML, CSS, and JavaScript for the Frontend, while the Backend is powered by Express and NodeJS. SQL is used as the database to store and retrieve user data.
-
User Authentication:
- Students and Teachers can log in to the application by clicking the respective buttons on the homepage.
-
Student Functionality:
- Students can view their results by entering their roll number and date of birth.
- If the entered roll number and date of birth do not match, an error is displayed on the screen.
-
Teacher Functionality:
- Teachers can:
- View all records.
- Add new records.
- Edit existing records.
- Delete records.
- Teachers can:
Ensure that the following software is installed on your machine:
- Node.js: https://nodejs.org/
- SQL Database (MySQL)
-
Clone the repository:
git clone https://github.com/vrun545/StudentMangementPortal_NodeJS.git
-
Change to the project directory:
cd StudentMangementPortal_NodeJS
-
Install dependencies:
npm install
-
Set up the database:
- Create a new database.
- Update the database configuration in the
config/db.js
file.
-
Database Schema:
- Create tables as per the requirements. You can find the SQL queries in the
database-schema.sql
file.
- Create tables as per the requirements. You can find the SQL queries in the
-
Environment Variables:
- Create a
.env
file based on the.env.example
file and update the values as needed.
- Create a
-
Start the application:
npm start
-
Open a web browser and navigate to http://localhost:3000.
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express
- Database: SQL (e.g., MySQL, PostgreSQL)
This project is licensed under the MIT License.