Welcome to my React Authentication App! This project is a personal project that demonstrates user authentication with login, signup, and user profile functionalities. The project includes both the frontend (React) and the backend.
- User Registration (Signup)
- User Authentication (Login)
- Remember Username Password For Next Login
- User Profile View
- User Profile Update
- User Profile Delete
- Logout
- Backend API for User Management
Before you begin, ensure you have met the following requirements:
- Node.js installed on your machine
- MongoDB installed locally or accessible via a cloud service (for the backend)
-
Clone the repository:
git clone https://github.com/AnkurNayak/EasyAuth
-
Navigate to the project directory:
cd easyauth
-
Open both frontend and backend in different terminal:
cd easyauth cd backend-services
-
Install npm for both folder
npm install
- Start the developement server and backend server:
(for backend) : npm start run (for frontend) : npm start dev
- Open your browser and navigate to http://localhost:5173/
- POST /api/users/signup: Register a new user.
- POST /api/users/signin: Authenticate and log in a user.
- GET /api/users/user/:userId: Get user details (requires authentication).
- PUT /api/users/user/update/:userId: Update user information (requires authentication).
- DELETE /api/users/delete/:userId: Delete a user account (requires authentication)..
This project is licensed under the MIT License