Feature-based CLI tool to install backend features easily like auth, cron-job, file-upload, etc.
npm install feature-hub---
A simple CLI tool to quickly install ready-made features (like auth, cron-jobs, payment, file-upload, etc.) into your Node.js projects š
---
.env file with necessary environment variables---
``bash`Install globally
npm install -g feature-hub
or you can use it directly without installation:
`bash`
npx feature-hub
---
`bash`
feature-hub install `
or simplybash`
feature-hub i
You will be asked where you want to install the feature.
Just provide the folder path (example: src/features) and it will be installed there ā
---
`bash`
feature-hub i auth
OR with npx:
`bash`
npx feature-hub i auth
You will see:
``
ā
Where do you want to install "auth"? Provide the path:
> src/features
Done!
It will:
- Copy the auth folder.env
- Install all required npm packages
- Add environment variables to file
---
| Feature Name | Description |
|--------------|-----------------------|
| auth | Authentication system |cron-job
| | Cron job scheduling |file-upload
| | File upload handling |payment
| | Payment system |queue
| | Queue system setup |redis
| | Redis setup |payments
| | Payment integration |
(ā More features coming soon...)
---
| Command | Description |
|---------|-------------|
| feature-hub install | Install a feature |feature-hub i
| | Short version to install |npx feature-hub i
| | Use directly without installing globally |
---
`bash
npx feature-hub i auth
ā
Where do you want to install "auth"? Provide the path:
> src/modules
ā
Successfully installed "auth" at /your/project/src/modules/auth
ā
Required packages installed by npm
``
---
Feel free to open an issue or submit a pull request if you want to improve this CLI tool!
---
MIT License
---
---