JSPM

@aurtty/spring-init

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22269F
  • License MIT

Professional API & Fullstack Generator CLI - Create production-ready applications in seconds

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

npm install -g @AurTTY/spring-init

Local Installation

npm install @AurTTY/spring-init

Requirements

  • 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 init

This 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 microservice

Infrastructure 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 k8s

aurtty cicd <platform> - Generate CI/CD Pipelines

# GitHub Actions
aurtty cicd github

# GitLab CI/CD
aurtty cicd gitlab

# Azure DevOps
aurtty cicd azure

Utility 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 build

Fullstack 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 --typescript

Infrastructure 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 help

aurtty 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 help

aurtty 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 help

aurtty 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 documentation

Enterprise 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.yml

Microservice 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 templates

Running 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:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Run the test suite: npm test
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to the branch: git push origin feature/amazing-feature
  7. 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

๐Ÿ™ 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! ๐Ÿš€