Gathering detailed insights and metrics for create-bodhi-node-app
Gathering detailed insights and metrics for create-bodhi-node-app
Gathering detailed insights and metrics for create-bodhi-node-app
Gathering detailed insights and metrics for create-bodhi-node-app
npm install create-bodhi-node-app
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Create production-ready Node.js REST APIs with zero configuration. Get started with a fully-featured Express.js application in seconds.
You can create a new app using either of these methods:
1npx create-bodhi-node-app my-project 2cd my-project 3npm install
First, install the package globally:
1npm install -g create-bodhi-node-app
Then create your project and install dependencies:
1create-bodhi-node-app my-project 2cd my-project 3npm install
After creating your project and installing dependencies:
1npm run dev
1npm start
Your API will be running at http://localhost:3000
While frontend developers have had tools like create-react-app
for years, backend developers have been left to configure their Node.js applications from scratch. Bodhi Node App changes that by providing a production-ready Node.js REST API boilerplate with all the essential features you need.
my-project
with any name you prefer):1npx create-bodhi-node-app my-project
1cd my-project 2npm install
1npm run dev
1NODE_ENV=development 2PORT=3000 3MONGODB_URI=mongodb://localhost:27017/your-db-name 4JWT_SECRET=your-jwt-secret 5JWT_EXPIRES_IN=1d
POST /api/v1/auth/register
- Register a new userPOST /api/v1/auth/login
- Login userGET /api/v1/auth/me
- Get current user profilePOST /api/v1/auth/refresh-token
- Refresh access tokenPOST /api/v1/auth/forgot-password
- Request password resetPOST /api/v1/auth/reset-password
- Reset password with tokenPOST /api/v1/auth/logout
- Logout userRegular User Routes:
GET /api/v1/users/profile
- Get user's profilePUT /api/v1/users/profile
- Update user's profilePUT /api/v1/users/password
- Update user's passwordDELETE /api/v1/users/account
- Delete user's accountAdmin Routes (Requires admin role):
GET /api/v1/users/admin
- Get all users (admin only)GET /api/v1/users/admin/:id
- Get specific user (admin only)PUT /api/v1/users/admin/:id/role
- Update user's role (admin only)All endpoints are documented using Swagger/OpenAPI specification and include:
Access the full API documentation by visiting /api-docs
after starting your server.
Follows industry best practices with a clean, maintainable structure:
src/
├── config/ # Environment variables & configuration
├── controllers/ # Route controllers (controller layer)
├── middleware/ # Custom express middlewares
├── models/ # Mongoose models (data layer)
├── routes/ # Routes
└── utils/ # Utility classes and functions
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Just as frontend developers have create-react-app
to jumpstart their React projects, backend developers deserve a robust solution for Node.js applications. That's why I created Bodhi Node App - to provide backend developers with a production-ready, feature-rich foundation for their REST APIs.
No more spending hours on boilerplate code or worrying about security configurations. With Bodhi Node App, you get a professionally structured Node.js application with all the essential features you need to build secure, scalable APIs.
Created with ❤️ by Bodheesh
If you find this project helpful, please give it a star ⭐ on GitHub! It helps more developers discover this tool.
No vulnerabilities found.
No security vulnerabilities found.