The Registration Form project is a web application that allows users to sign up and log in using either their email or username along with a password. It features a user-friendly and minimalist design for seamless user interaction.
- User Registration: Users can create an account with a unique username or email and a password.
- User Login: Users can log in using either their username or email along with their password.
- Responsive Design: Utilizing Tailwind CSS for a modern and responsive user interface.
React is used for building the user interface. Its component-based architecture makes it ideal for developing complex user interfaces like our registration form.
Tailwind CSS is used for styling due to its utility-first approach, making it easy to design a responsive and visually appealing UI without writing custom CSS.
Node.js and Express provide a scalable and efficient server environment. Express simplifies routing and request handling, making it suitable for our application's backend structure.
MongoDB offers a flexible, document-oriented database system. It's used for storing user registration data, chosen for its scalability and ease of use with JSON-like documents.
/registration-form
├── client/
│ ├── node_modules/
│ ├── public/
│ ├── src/
│ │ ├── assets/
│ │ ├── components/
│ │ ├── App.css
│ │ ├── App.js
│ │ ├── App.test.js
│ │ ├── index.js
│ │ └── tailwind.css
│ ├── .gitignore
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ └── tailwind.config.js
└── server/
├── node_modules/
├── src/
│ ├── db/
│ │ └── db.connect.js
│ ├── model/
│ │ └── userSchema.js
│ └── router/
│ └── auth.js
├── .env
├── .gitignore
├── app.js
├── package-lock.json
├── package.json
└── README.md
- Clone the repository
git clone https://github.com/your-username/registration-form.git
cd registration-form- Install dependencies
# Client-side dependencies
cd client
npm install
# Server-side dependencies
cd ../server
npm install- Set up environment variables
Create a .env file in the server directory and add the following variables:
MONGODB_USERNAME=yourMongoDBUsername
MONGODB_PASSWORD=yourMongoDBPassword
DATABASE_NAME=registrationDB
PORT=5000
- Start the server
cd server
npm start- Start the client
cd ../client
npm startAfter starting both the server and client, open your browser and navigate to http://localhost:3000 to use the registration form. You can sign up with a unique username or email, and then log in using your credentials.
Contributions to the Registration Form project are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a pull request.