Package Exports
- @aurtty/spring-init
- @aurtty/spring-init/dist/cli.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aurtty/spring-init) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
๐ AurTTY Init
Professional API & Fullstack Generator CLI - Create production-ready applications in seconds
AurTTY Init is a powerful command-line tool that generates complete, production-ready applications with modern architectures, best practices, and enterprise-grade features. Built for developers who want to focus on business logic instead of boilerplate code.
โจ Features
- ๐ฏ Multi-Profile APIs: Startup, Enterprise, and Microservice profiles
- ๐๏ธ Fullstack Generators: Vue.js, React, Next.js, Angular, Svelte
- โ๏ธ Backend Support: TypeScript/JavaScript with Express.js
- ๐ณ Infrastructure as Code: Docker, Docker Compose, Kubernetes
- ๐ CI/CD Ready: GitHub Actions, GitLab CI, Azure DevOps
- ๐จ Modern Stack: Pre-configured with industry best practices
- ๐ฆ One-Command Setup: Automatic dependency installation
- ๐ง Highly Customizable: Interactive and programmatic modes
- ๐ Git Integration: Automatic repository initialization
- ๐งช Testing Ready: Jest, Vitest, and more
- ๐ Monitoring: Health checks, logging, metrics
- ๐ Security: Authentication, validation, CORS
๐ฆ Installation
Global Installation (Recommended)
npm install -g @AurTTY/spring-initLocal Installation
npm install @AurTTY/spring-initRequirements
- Node.js >= 16.0.0
- npm or yarn
๐ Quick Start
Create Your First API
# Interactive mode
aurtty init
# Or create a microservice API directly
aurtty new api --name my-microservice --profile microservice๐ Usage Guide
Core Commands
aurtty init - Interactive Project Creation
Launch the interactive wizard to configure your project step-by-step:
aurtty initThis will guide you through:
- Project name and description
- Backend language (TypeScript/JavaScript)
- Frontend framework
- Architecture and features
- Git and deployment options
aurtty new <type> --profile <profile> - Direct Project Creation
Create projects with specific profiles:
# Startup API (simple, fast)
aurtty new api --name my-startup-api --profile startup
# Enterprise API (full-featured)
aurtty new api --name my-enterprise-api --profile enterprise
# Microservice API (production-ready)
aurtty new api --name my-microservice --profile microserviceInfrastructure Commands
aurtty infra <type> - Generate Infrastructure Files
# Generate Dockerfile
aurtty infra docker
# Generate Docker Compose with database
aurtty infra compose
# Generate Kubernetes manifests
aurtty infra k8saurtty cicd <platform> - Generate CI/CD Pipelines
# GitHub Actions
aurtty cicd github
# GitLab CI/CD
aurtty cicd gitlab
# Azure DevOps
aurtty cicd azureUtility Commands
# List available templates
aurtty templates
# Show help
aurtty --help
# Show version
aurtty --version๐ฏ Project Profiles
Startup Profile
Perfect for MVPs and small projects:
- โ Authentication (JWT)
- โ Database integration
- โ Basic logging
- โ Input validation
- โก Fast setup, minimal overhead
Enterprise Profile
Full-featured for business applications:
- โ Authentication & Authorization
- โ Database with migrations
- โ Advanced logging (Winston)
- โ Input validation (Joi/Zod)
- โ API documentation (Swagger)
- โ Testing setup
- โ Docker configuration
- โ CI/CD pipeline
Microservice Profile
Production-ready microservices:
- โ Health checks (/health endpoint)
- โ Graceful shutdown
- โ OpenTelemetry integration
- โ Advanced monitoring
- โ Container optimization
- โ Kubernetes-ready
๐ Detailed Examples
Creating APIs with Different Profiles
# Startup API - Quick and simple
aurtty new api --name user-service --profile startup
cd user-service
npm start
# Enterprise API - Full-featured
aurtty new api --name order-service --profile enterprise
cd order-service
npm run dev
# Microservice API - Production-ready
aurtty new api --name payment-service --profile microservice
cd payment-service
npm run buildFullstack Applications
# Vue.js + Express
aurtty init --name my-vue-app --template vue --typescript
# React + Node.js
aurtty init --name my-react-app --template react --typescript
# Next.js Fullstack
aurtty init --name my-next-app --template next --typescriptInfrastructure Setup
# Create a project first
aurtty new api --name my-api --profile enterprise
# Add Docker support
cd my-api
aurtty infra docker
# Add Docker Compose with database
aurtty infra compose
# Add Kubernetes manifests
aurtty infra k8s
# Add CI/CD pipeline
aurtty cicd github๐ ๏ธ Command Reference
aurtty init Options
aurtty init [options]
Options:
-q, --quick Quick setup with defaults
-y, --yes Skip prompts and use defaults
-h, --help Show helpaurtty new Options
aurtty new <type> [options]
Arguments:
type Project type (api|web|fullstack)
Options:
-n, --name <name> Project name (required)
-p, --profile <profile> Project profile (startup|enterprise|microservice)
-ts, --typescript Use TypeScript (default)
-js, --javascript Use JavaScript
--no-install Skip dependency installation
--no-git Skip Git initialization
-h, --help Show helpaurtty infra Options
aurtty infra <type> [options]
Arguments:
type Infrastructure type (docker|compose|k8s)
Options:
-n, --name <name> Project name (default: current directory)
-h, --help Show helpaurtty cicd Options
aurtty cicd <platform> [options]
Arguments:
platform CI/CD platform (github|gitlab|azure)
Options:
-n, --name <name> Project name (default: current directory)
-h, --help Show help๐ Generated Project Structure
API Project Structure
my-api/
โโโ src/
โ โโโ controllers/ # Route controllers
โ โโโ models/ # Data models
โ โโโ routes/ # API routes
โ โโโ middleware/ # Custom middleware
โ โโโ utils/ # Utility functions
โ โโโ server.ts # Main server file
โโโ tests/ # Test files
โโโ Dockerfile # Docker configuration
โโโ docker-compose.yml # Multi-container setup
โโโ .env.example # Environment variables
โโโ package.json # Dependencies
โโโ tsconfig.json # TypeScript config
โโโ README.md # Project documentationEnterprise Profile Additions
my-api/
โโโ logs/ # Application logs
โโโ docs/ # API documentation
โโโ k8s/ # Kubernetes manifests
โโโ .github/workflows/ # CI/CD pipelines
โโโ src/
โ โโโ config/ # Configuration files
โ โโโ services/ # Business logic
โ โโโ validators/ # Input validation
โ โโโ types/ # TypeScript types
โโโ docker-compose.prod.ymlMicroservice Profile Additions
my-api/
โโโ src/
โ โโโ health/ # Health check endpoints
โ โโโ telemetry/ # OpenTelemetry setup
โ โโโ graceful-shutdown.ts
โโโ k8s/
โ โโโ deployment.yaml
โ โโโ service.yaml
โ โโโ configmap.yaml
โโโ .env.production # Production environment๐ง Development & Testing
Local Development
# Clone and setup
git clone https://github.com/AurTTY/AurTTY_INIT.git
cd AurTTY_INIT/cli
# Install dependencies
npm install
# Build the project
npm run build
# Link for local testing
npm link
# Test commands
aurtty --version
aurtty templatesRunning Tests
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Run specific test
npm test -- --testNamePattern="should create project"๐ค Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run the test suite:
npm test - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
Development Guidelines
- Follow TypeScript best practices
- Add tests for new features
- Update documentation
- Use conventional commits
- Ensure all tests pass
๐ License
MIT ยฉ AurTTY - Roberto Carlos
๐ Support & Community
- ๐ง Email: support@aurtty.com
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
- ๐ Documentation: Wiki
๐ Acknowledgments
- Built with โค๏ธ by AurTTY - Roberto Carlos
- Inspired by modern development practices
- Thanks to the open-source community
AurTTY Init - Because every great application starts with great foundations! ๐