A production-ready starter template for building full-stack web applications using the MERN stack (MongoDB, Express, React, Node.js). Designed for speed, scalability, and modularity.
MERN_full_stack/
├── README.md
├── Backend/
│ ├── app.js
│ ├── index.js
│ ├── package.json
│ └── src/
│ ├── controllers/
│ │ └── auth.controller.js
│ ├── middlewares/
│ │ └── addHere.js
│ ├── models/
│ │ └── user.model.js
│ ├── routes/
│ │ ├── auth.route.js
│ │ └── user.route.js
│ ├── services/
│ │ └── auth.service.js
│ └── utils/
│ └── addhere.js
├── Frontend/
│ ├── eslint.config.js
│ ├── index.html
│ ├── package.json
│ ├── vite.config.js
│ └── public/
│ └── src/
│ ├── App.jsx
│ ├── index.css
│ ├── main.jsx
│ ├── assets/
│ ├── components/
│ │ └── addHere.js
│ │ └── common/
│ │ ├── Button.jsx
│ │ └── Modal.jsx
│ ├── context/
│ │ └── authContext.jsx
│ ├── hooks/
│ │ ├── useAuth.js
│ │ └── useDebounce.js
│ ├── layouts/
│ ├── pages/
│ │ ├── Home.jsx
│ │ └── Login.jsx
│ ├── services/
│ │ ├── api.js
│ │ ├── auth.service.js
│ │ └── user.service.js
│ ├── styles/
│ │ └── global.css
│ └── utils/
│ ├── constants.js
│ └── helpers.js
- 🔐 Full-Stack Authentication Ready: Structure prepared for JWT/Session authentication.
- 🏗️ MVC Architecture: Backend organized into Models, Views (Routes), and Controllers for better separation of concerns.
- 🌐 RESTful API: Standardized API endpoints structure for easy integration.
- ⚛️ React Hooks: Utilizes modern functional components and hooks for state management.
- 🌍 Environment Management: Centralized configuration via
.envfor easy environment setup. - 🔗 CORS Configured: Seamless communication between frontend and backend.
- Node.js (v14 or higher)
- MongoDB Atlas account (for database)
- Clone the repository:
git clone https://github.com/yourusername/MERN_full_stack.git cd MERN_full_stack - Install backend dependencies:
cd Backend npm install - Install frontend dependencies:
cd ../Frontend npm install
- Start the backend server:
cd Backend npm start - Start the frontend development server:
cd Frontend npm run dev
Contributions are welcome! Let me know if there is scope of improvement or if any issue then raise issue.
This project is licensed under the MIT License. free to use by anyone and speed up your development journey!
For any inquiries, please reach out to code369decode@gmail.com.