https://github.com/parthasarathy27/reactpage-login
This MERN stack login page project enables user registration, login, and authentication using JWT tokens. It utilizes MongoDB for data storage, Express.js for backend handling, React.js for frontend rendering, and Node.js as the runtime environment. Simple yet effective, it provides a solid foundation for user authentication in web applications.
https://github.com/parthasarathy27/reactpage-login
express-js mern-stack mongodb node-js reactjs
Last synced: 2 months ago
JSON representation
This MERN stack login page project enables user registration, login, and authentication using JWT tokens. It utilizes MongoDB for data storage, Express.js for backend handling, React.js for frontend rendering, and Node.js as the runtime environment. Simple yet effective, it provides a solid foundation for user authentication in web applications.
- Host: GitHub
- URL: https://github.com/parthasarathy27/reactpage-login
- Owner: parthasarathy27
- Created: 2024-02-28T08:02:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T14:01:04.000Z (over 2 years ago)
- Last Synced: 2025-01-19T08:19:26.439Z (over 1 year ago)
- Topics: express-js, mern-stack, mongodb, node-js, reactjs
- Language: JavaScript
- Homepage: https://loginpage-mu-five.vercel.app
- Size: 221 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# MERN Login Page
This project is a simple MERN stack login page implementation. It allows users to register, login, and logout using authentication tokens.
## Features
- User registration with email and password
- User login with email and password
- Authentication using JSON Web Tokens (JWT)
- Logout functionality
## Technologies Used
- MongoDB: Database to store user information
- Express.js: Backend framework to handle HTTP requests
- React.js: Frontend library for building user interfaces
- Node.js: JavaScript runtime environment
- bcryptjs: Library for hashing passwords securely
- jsonwebtoken: Library for generating and verifying JSON Web Tokens
## Installation
1. Clone the repository:
```
git clone
```
2. Install dependencies for both client and server:
```
cd client
npm install
cd ../server
npm install
```
3. Set up environment variables:
Create a `.env` file in the `server` directory and add the following variables:
```
MONGODB_URI=
JWT_SECRET=
```
Replace `` with your MongoDB connection string and `` with a secret key for JWT encryption.
4. Start the development server:
```
cd ../client
npm start
cd ../server
npm start
```
## Usage
Visit the application in your browser at [http://localhost:3000](http://localhost:3000) to register, login, and use the login functionality.
## Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
Feel free to customize this README to include any additional information about your project or specific setup instructions.