A full-stack web application for managing users, built with the MERN stack (MongoDB, Express.js, React, Node.js).
- User CRUD Operations: Create, read, update, and delete users
- Responsive UI: Built with React and Bootstrap for a modern, mobile-friendly interface
- RESTful API: Express.js backend with MongoDB for data persistence
- Real-time Notifications: Toast notifications for user feedback
- Form Validation: Client-side validation for user inputs
-
Clone the repository:
git clone <repository-url> cd MERN-STACK
-
Install server dependencies:
cd server npm install -
Install client dependencies:
cd ../client npm install -
Set up environment variables: Create a
.envfile in theserverdirectory with:PORT=8000 MONGO_URL=mongodb://localhost:27017/your-database-name
-
Start the server:
cd server npm run devThe server will run on
http://localhost:8000 -
Start the client:
cd client npm startThe client will run on
http://localhost:3000 -
Access the application: Open your browser and navigate to
http://localhost:3000
POST /api/user- Create a new userGET /api/users- Get all usersGET /api/user/:id- Get a user by IDPUT /api/update/user/:id- Update a userDELETE /api/delete/user/:id- Delete a user
- Frontend: React, Bootstrap, Font Awesome, Axios, React Router, React Hot Toast
- Backend: Node.js, Express.js, MongoDB, Mongoose
- Development: Nodemon, React App Rewired
- Fork the repository
- Create a feature 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
This project is licensed under the ISC License - see the LICENSE file for details.