This project is a web-based class registration system for the Principles of Web Technology class. It allows students to submit their information and select a time slot for their class project.
If Node and NPM is not installed
Before you begin, please ensure you have met the following requirements:
- Node.js: Download and install Node.js
- npm (Node Package Manager): npm is included with Node.js installation.
- Clone the repository:
git clone https://github.com/your-username/web-tech-class-registration.git
- Navigate to the project folder
cd web-tech-class-registration
- Install dependencies
npm install
-
Database Configuration Set up a MySQL database and configure the connection details in server.js. Execute the SQL script provided in db.sql to create the necessary tables
-
Start the application
npm start
OR
node server.js
- Access the application Open your browser and navigate to http://localhost:3000
Usage Access the registration form by visiting the homepage.
Fill in the required information, including first name, last name, project title, email, phone number, and select a time slot.
Click the "Submit" button to register.
To view the list of registered students, navigate to http://localhost:3000/students.
This project relies on the following dependencies:
- Express: Fast, unopinionated, minimalist web framework for Node.js.
- mysql2: MySQL library for Node.js.
- ejs: Embedded JavaScript templates.
To install the dependencies, run the following command:
npm install