2.0.6 • Published 6 months ago

jshipster v2.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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.yaml based on available controllers and JSDocs or a tsconfig.json file.
  • 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 install and start the service. Modify model properties as needed for your use case.
  • Customizable Configuration: Tailor your project’s structure using jshipster.config.json for 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 init
  • add [moduleName]: Add a new module to the project. Run interactively if moduleName is omitted.

    jshipster add auth-jwt
  • list [searchTerm]: List all available TypeScript module templates, optionally filtered by searchTerm.

    jshipster list
  • generate: Generate a resource (e.g., service, controller, DTO) or standalone assets like swagger.yaml.

    jshipster generate
  • create [moduleName]: Create a new npm-ready module with a professional structure.

    jshipster create auth-module
  • create-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 jshipster

Usage

Here’s how you can use JSHipster to streamline your backend development:

  1. Initialize a New Project
    Scaffold a new backend project with:

    jshipster init
  2. List Available Modules
    View available modules from local templates and npm:

    jshipster list
  3. Add a Module
    Add a pre-built module (e.g., auth-jwt) to your project:

    jshipster add auth-jwt
  4. Generate a Resource
    Dynamically generate a full module, service, controller, DTO, or standalone assets like swagger.yaml:

    jshipster generate
  5. Create a New Module
    Create a professional, npm-ready module with a clean structure:

    jshipster create
  6. Create a Fully Configured Microservice
    Generate a production-ready microservice:

    jshipster create-microservice cart
  7. Customize Your Project with jshipster.config.json
    Tailor the project’s directory structure and module settings by editing jshipster.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:

  1. Fork the Repository
    Start by forking the GitHub repository to your account.

  2. Enhance or Add Templates
    Add or improve modules by working in the src/templates/ directory.

  3. Submit a Pull Request
    Once your changes are ready, submit a pull request to the main repository for review.

  4. 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.json to 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.

2.0.6

6 months ago

2.0.5

6 months ago

2.0.4

6 months ago

2.0.3

6 months ago

2.0.2

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago