jshipster v2.0.6
JSHipster
JSHipster is a modular Node.js CLI designed to simplify and accelerate backend development. With its intuitive interface and flexible architecture, JSHipster enables you to quickly bootstrap backend projects, integrate reusable modules, and create npm-ready services. No login required, and it works seamlessly both online and offline.
Features
- Project Initialization: Scaffold a new backend project with a clean, modular structure.
- Add Modules: Add reusable modules, either locally or from npm, to enhance your project.
- List Modules: View available modules from local templates or user-made modules (starting with
jshipster-). - Generate Resources: Dynamically generate resources like services, controllers, and DTOs in TypeScript. Generate standalone assets such as
swagger.yamlbased on available controllers and JSDocs or atsconfig.jsonfile. - Create Full Modules: Create a fully functional module in one command, or generate a single part of a module if needed (e.g., controller, service, DTO).
- Production-Ready Microservices: Quickly create a fully ready microservice with predefined structure. Just run
npm installand start the service. Modify model properties as needed for your use case. - Customizable Configuration: Tailor your project’s structure using
jshipster.config.jsonfor directory mappings and module settings.
Commands
JSHipster provides a variety of commands to suit your development needs:
init: Initialize a new JSHipster project interactively.jshipster initadd [moduleName]: Add a new module to the project. Run interactively ifmoduleNameis omitted.jshipster add auth-jwtlist [searchTerm]: List all available TypeScript module templates, optionally filtered bysearchTerm.jshipster listgenerate: Generate a resource (e.g., service, controller, DTO) or standalone assets likeswagger.yaml.jshipster generatecreate [moduleName]: Create a new npm-ready module with a professional structure.jshipster create auth-modulecreate-microservice <serviceName>: Generate a fully configured microservice with production-ready setup.jshipster create-microservice user-service
Installation
To install JSHipster globally, run:
npm install -g jshipsterUsage
Here’s how you can use JSHipster to streamline your backend development:
Initialize a New Project
Scaffold a new backend project with:jshipster initList Available Modules
View available modules from local templates and npm:jshipster listAdd a Module
Add a pre-built module (e.g.,auth-jwt) to your project:jshipster add auth-jwtGenerate a Resource
Dynamically generate a full module, service, controller, DTO, or standalone assets likeswagger.yaml:jshipster generateCreate a New Module
Create a professional, npm-ready module with a clean structure:jshipster createCreate a Fully Configured Microservice
Generate a production-ready microservice:jshipster create-microservice cartCustomize Your Project with
jshipster.config.json
Tailor the project’s directory structure and module settings by editingjshipster.config.json. For example:{ "directories": { "controller": "src/custom-controllers-path", "service": "src/custom-services-path", "dto": "src/custom-dtos-path", "route": "src/custom-routes-path", "model": "src/custom-models-path", "repository": "src/custom-repositories-path" }, "modules": { "auth-jwt": { "installedAt": "2024-12-27T12:00:00Z" } } }This flexibility ensures that JSHipster adapts to your unique project needs.
How to Contribute
JSHipster is open source and thrives on community contributions. Here’s how you can get involved:
Fork the Repository
Start by forking the GitHub repository to your account.Enhance or Add Templates
Add or improve modules by working in thesrc/templates/directory.Submit a Pull Request
Once your changes are ready, submit a pull request to the main repository for review.Create and Share Modules
Publish your own JSHipster-compatible modules to npm so others can use them in their projects. Modules should follow the blueprint structure provided by JSHipster.
Why Choose JSHipster?
- Time-Saving: Eliminate repetitive boilerplate tasks.
- Modular Design: Easily add or remove features as your project grows.
- Reusable Ecosystem: Leverage and contribute to a growing library of reusable modules.
- TypeScript First: All scaffolding and modules are built with TypeScript, ensuring strong typing and modern development practices.
- Customizable: Use
jshipster.config.jsonto adapt the tool to your project’s specific requirements. - Production-Ready: Generate microservices ready for deployment with minimal configuration.
- Open Source: Join a community of developers shaping the future of backend development.
Get Started Today!
Ready to try JSHipster? Install it globally and start building better backends, faster. For more information, check out the GitHub repository.
License
This project is licensed under the MIT License.