This project is a full-stack web application that implements user authentication using React.js on the front end and Node.js on the back end. It provides a secure and seamless way to register users, handle authentication, and manage user sessions.
- User registration with email verification
- Secure password hashing and storage
- Token-based authentication
- Protected routes on the frontend
- User login and logout functionality
- User profile management
- Access control for protected resources
-
Frontend:
- React.js
- React Router
- Axios
-
Backend:
- Node.js
- Express.js
- MongoDB
- Node.js installed on your machine
- MongoDB installed and running locally or accessible via a connection string
-
Clone the repository:
git clone https://github.com/Bishopukpai/full-auth-app.git
-
Navigate to the project directory:
cd full-auth-app
-
Install dependencies for both frontend and backend:
cd React-auth npm install --force #Open another command line window cd ../Login_server npm install
-
/frontend: Contains the React.js frontend code.
-
/backend: Contains the Node.js backend code.
Create a .env file in the backend directory and configure the following:
PORT=3001
MONGODB_URI=mongodb://localhost:27017/your-database
SECRET_KEY=your-secret-key
- Start the backend server:
cd .. #move into the full-auth-app cd full-auth-app npm start
- Start the frontend development server:
npm run dev
Contributions are welcome! Please follow the Contribution Guidelines.
This project is licensed under the MIT License.
Make sure to replace placeholders like your-username
, your-database
, your-secret-key
, and others with your actual project details. Additionally, feel free to add or modify sections based on your project's specific features and requirements.