create-my-custom-backend-mern
v1.0.0
Published
Custom MERN backend
Readme
My Custom Backend (Boilerplate)
A custom MERN backend with Clerk-like modularity.
Features
- MVC Architecture: Clean separation of concerns.
- Authentication: JWT-based login/register with Google Auth placeholder.
- RBAC: Role-Based access control (Admin/User).
- Simulated Payments: Mock payment processing.
- Logging: Integrated Winston and Morgan logging.
Installation
npm installConfiguration
Create a .env file in the root directory:
PORT=5000
MONGO_URI=mongodb://localhost:27017/my-custom-backend
JWT_SECRET=your_jwt_secret
CLIENT_URL=http://localhost:3000Usage
Start the server:
npm start
# or for development
npm run devFor detailed API documentation, see BACKEND_GUIDE.md.
Credits to RONIT BANERJEE (https://www.linkedin.com/in/ronit-banerjee-44b4642b6)
