Crates.io | ts_microservice_generator |
lib.rs | ts_microservice_generator |
version | 1.0.1 |
source | src |
created_at | 2024-08-04 07:08:01.93859 |
updated_at | 2024-08-05 06:35:33.432039 |
description | A CLI tool to generate TypeScript microservice projects. |
homepage | |
repository | https://github.com/codewise-technologies/ts_microservice_generator |
max_upload_size | |
id | 1324766 |
size | 48,858 |
A command-line tool to generate a boilerplate for TypeScript microservices.
To use the TypeScript Microservice Generator, you need to have Rust and Cargo installed. Clone this repository and build the project:
git clone https://github.com/codewise-technologies/ts_microservice_generator.git
cd ts_microservice_generator
cargo build --release
Alternatively, you can install the tool directly using Cargo:
cargo install ts_microservice_generator
This will download and install the ts_microservice_generator
crate from crates.io and make it available as a global command on your system.
After installation, you can use the generator to create a new TypeScript microservice boilerplate. Use the following command format:
ts_microservice_generator -n <project_name> -v <version> -a <author> -b <description> -t <architecture>
Where <architecture>
can be one of the following:
hexagonal
clean_code
saga
To create a project with a hexagonal architecture:
ts_microservice_generator -n MyProject -v 2.0 -a "John Doe" -b "This is a TypeScript microservice example." -t hexagonal
Output:
Project MyProject generated successfully with hexagonal architecture
To create a project with a clean code architecture:
ts_microservice_generator -n MyProject -v 2.0 -a "John Doe" -b "This is a TypeScript microservice example." -t clean_code
Output:
Project MyProject generated successfully with clean code architecture
To create a project with a saga architecture:
ts_microservice_generator -n MyProject -v 2.0 -a "John Doe" -b "This is a TypeScript microservice example." -t saga
Output:
Project MyProject generated successfully with saga architecture
In these examples, the generator will create a new project named MyProject
with version 2.0
, authored by "John Doe," and described as "This is a TypeScript microservice example." The generated project will include all the necessary files and structure to start developing a TypeScript microservice with the specified architecture.
This project is licensed under the MIT License - see the LICENSE file for details.