|_ _| _ _ __| |__ ___ / ___| ___ _ __
| || | | | '__| '_ \ / _ \| | _ / _ \ '_ \
| || |_| | | | |_) | (_) | |_| | __/ | | |
|_| \__,_|_| |_.__/ \___/ \____|\___|_| |_|
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ 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 init
This creates basic project files like .gitignore and README.md.
- Generate a microservices template:
Replace
turbogen generate -l <language>
<language>
with eithernodejs
orgo
.
- Navigate to the nodejs folder.
- Install dependencies:
npm install
- Run the application:
npm start
- Navigate to the go folder.
- Run the application:
go run main.go
Build and run the microservice using Docker:
docker build -t microservice .
docker run -p 8080:8080 microservice