A full-stack authentication and CRUD (Create, Read, Update, Delete) application built using the MERN stack (MongoDB, Express.js, React, and Node.js). This project provides user authentication with JWT and essential CRUD operations.
- User Authentication (Register/Login/Logout)
- JWT-based Authentication
- Protected Routes
- CRUD Operations on User Data
- Secure Password Hashing (bcrypt)
- MongoDB for Data Storage
- Express.js Backend API
- React Frontend
- Frontend: React, React Router, Axios
- Backend: Node.js, Express.js
- Database: MongoDB with Mongoose
- Authentication: JWT, bcrypt
- Others: CORS, dotenv
git clone https://github.com/Sebe2k04/AuthCrud-MERN.git
cd AuthCrud-MERN
cd backend
npm install
MONGO_DB_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
CLOUDINARY_FOLDER_NAME="AuthCrud"
JWT_EXPIRES_IN="1d"
NODE_ENV="production"
EMAIL_USER=
EMAIL_PASS=
CLIENT_URL="http://localhost:5173"
npm start
cd frontend
npm install
npm start
VITE_API_URL = "http://localhost:5555"
- Open
http://localhost:3000
in your browser. - Register or login using valid credentials.
- Perform CRUD operations on the data.
- Role-based authentication
- Improved UI/UX
- Deployment on cloud platforms
This project is open-source under the MIT License.
This project is developed by @Sebe2k04 only
Feel free to fork this repo and submit pull requests.