turbogen
v2.0.2
Published
๐ TurboGen CLI: Effortlessly generate professional-grade microservice templates in Node.js and Go with a single command.
Maintainers
Readme
๐ TurboGen CLI ๐
|_ _| _ _ __| |__ ___ / ___| ___ _ __
| || | | | '__| '_ \ / _ \| | _ / _ \ '_ \
| || |_| | | | |_) | (_) | |_| | __/ | | |
|_| \__,_|_| |_.__/ \___/ \____|\___|_| |_|
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Welcome to TurboGen CLI! ๐ โ
โ Generate Microservices Templates Effortlesslyโ
โ Use --help for available commands โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โจ TurboGen CLI is your ultimate toolkit for kickstarting scalable microservices architecture. With pre-built templates and cutting-edge features, you can focus on what matters: building great software!
This is a generated microservices template using the `turbogen`
This is a generated microservices template using the `turbogen` CLI tool. It provides a structured and production-ready foundation for building scalable microservices.
## Features
- **Preconfigured Docker support** for containerization.
- **Kubernetes manifests** for deployment.
- **Environment variable management** with `.env`.
- **Integrated logging** (Winston for Node.js, logrus for Go).
- **Scalable architecture** with templates for REST APIs.
## Getting Started
### Prerequisites
- Docker installed on your system.
- Kubernetes cluster set up (optional).
- Node.js v16+ or Go installed (depending on the microservice language).
### Commands
1. Initialize a new microservices project:
```bash
turbogen initThis creates basic project files like .gitignore and README.md.
- Generate a microservices template:
Replaceturbogen generate -l <language><language>with eithernodejsorgo.
Running Locally
Node.js
- Navigate to the nodejs folder.
- Install dependencies:
npm install - Run the application:
npm start
Go
- Navigate to the go folder.
- Run the application:
go run main.go
Deployment
Docker
Build and run the microservice using Docker:
docker build -t microservice .
docker run -p 8080:8080 microservice