An open API service indexing awesome lists of open source software.

https://github.com/charithasrir31/registration-form

Registration form to sign up and store user information using HTML, CSS, Node.js in MongoDB.
https://github.com/charithasrir31/registration-form

body-parser css css-animations express-js html javascript mongodb mongoose node-js registration-forms

Last synced: 5 months ago
JSON representation

Registration form to sign up and store user information using HTML, CSS, Node.js in MongoDB.

Awesome Lists containing this project

README

          

# **Registration Form**

This is a **full-stack** registration form built using **HTML, CSS, JavaScript** for the frontend and **Node.js, Express, and MongoDB** for the backend. The form includes **client-side validation** and securely stores user data in a MongoDB database.

---

## 🛠️ Tech Stack
- **Frontend:** HTML, CSS, JavaScript
- **Backend:** Node.js, Express.js
- **Database:** MongoDB, Mongoose
- **Other Dependencies:** Body-Parser

---

## 🚀 Features
✔ **Client-side validation** for form fields
✔ **Backend validation** for user data
✔ Stores user data securely in **MongoDB**
✔ Redirects users to a **success or error page**
✔ **RESTful API** for handling form submissions

---

## 📦 Dependencies
Ensure you have **Node.js** installed, then run:
```sh
npm install
```
This will install:
- express - Web framework for Node.js
- mongoose - MongoDB Object Modeling
- body-parser - Middleware for parsing request data

---

## **⚡ How to Run the Project**
1. Clone the Repository
```sh
git clone https://github.com/charithasrir31/Registration-Form.git
cd Registration-Form
```
2. Install Dependencies
```sh
npm install
```
3. Start MongoDB
Ensure MongoDB is running:
```sh
mongod
```
Or, if using MongoDB Atlas, update the MongoDB connection URL in server.js.

4. Run the Backend Server
```sh
node server.js
```
or (if using nodemon):
```sh
npm run dev
```
5. Open in Browser
http://localhost:3000

---

## 📸 Output Screenshots
### **Registration Page**
![Registration Form](https://github.com/user-attachments/assets/bc29d134-1825-43e5-a4df-58c956f9379a)

### **Success Page**
![Success Message](https://github.com/user-attachments/assets/e06a030e-cc95-47ad-831e-dc8f3efdcc76)

### **Error Page**
![Error Message](https://github.com/user-attachments/assets/707ad162-6b6f-486f-a555-775a33f3a0e3)