CodeDesignPlus Microservices Net
CodeDesignPlus Microservices Net is a Visual Studio Code extension that provides tools to help you design microservices in .NET. This extension leverages the CodeDesignPlus Generator to streamline the creation of various components such as aggregates, entities, value objects, domain events, repositories, controllers, protos, queries, DTOs, commands, and consumers.
Each command is fully documented in the CodeDesignPlus Microservice Generator Documentation.
Features
This extension includes the following commands:
- CodeDesignPlus: Add Aggregate: Generate a new aggregate.
- CodeDesignPlus: Add Entity: Generate a new entity.
- CodeDesignPlus: Add Value Objects: Generate new value objects.
- CodeDesignPlus: Add Domain Events: Generate new domain events.
- CodeDesignPlus: Add Repository: Generate a new repository.
- CodeDesignPlus: Add Controller: Generate a new controller.
- CodeDesignPlus: Add Proto: Generate a new proto file.
- CodeDesignPlus: Add Queries: Generate new queries.
- CodeDesignPlus: Add Data Transfer Objects: Generate new DTOs.
- CodeDesignPlus: Add Commands: Generate new commands.
- CodeDesignPlus: Add Consumers: Generate new consumers.
Prerequisites
This extension requires the CodeDesignPlus Generator to be installed. Follow the installation guide provided in the official documentation.
Installation
- Install Visual Studio Code.
- Open the Extensions view (
Ctrl+Shift+X
or Cmd+Shift+X
on Mac).
- Search for CodeDesignPlus Microservices Net and install the extension.
- Ensure the CodeDesignPlus Generator is installed on your system.
Usage
- Open the Command Palette (
Ctrl+Shift+P
or Cmd+Shift+P
on Mac).
- Search for one of the commands, such as
CodeDesignPlus: Add Aggregate
.
- Follow the prompts to generate the desired component.
- The extension will execute the corresponding generator command in the terminal.
Development
Setting Up the Environment
- Clone this repository.
- Run
npm install
to install dependencies.
- Compile the project with
npm run compile
.
Available Scripts
npm run watch
: Watch for changes and recompile automatically.
npm run lint
: Run ESLint to check for code style issues.
npm run test
: Run tests for the extension.
Debugging
- Press
F5
to launch a new instance of Visual Studio Code with the extension loaded.
- Set breakpoints in
src/extension.ts
to debug the extension.
- Use the Debug Console to view logs.
Documentation
For detailed documentation on each command, visit the CodeDesignPlus Microservice Generator Documentation.
Publishing
- Reduce the extension size and improve startup time by bundling the extension.
- Publish the extension to the Visual Studio Code Marketplace.
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
License
Refer to the license in the repository.
Thank you for using CodeDesignPlus Microservices Net!