xacos init

Initialize a new Express.js backend project with your choice of configuration and dependencies.

Usage

xacos init <project-name> [options]

Options

  • --ts - Initialize with TypeScript
  • --js - Initialize with JavaScript (default)
  • --prisma - Add Prisma ORM
  • --mongodb - Add MongoDB with Mongoose
  • --redis - Add Redis caching setup
  • --docker - Include Docker configuration
  • --git - Initialize Git repository

Examples

Basic Project with TypeScript

xacos init my-api --ts

Full Stack with TypeScript, Prisma, and Redis

xacos init my-api --ts --prisma --redis

MongoDB with Docker

xacos init my-api --ts --mongodb --docker

What Gets Created

The init command creates a complete project structure including:

  • Express application setup with middleware
  • Professional folder structure
  • Configuration files
  • Environment variables template
  • Package.json with scripts
  • README with project documentation
  • Git repository (if --git flag is used)

Next Steps

After initializing your project:

  1. Navigate to your project directory
  2. Install dependencies with npm install
  3. Configure environment variables in .env
  4. Start development server with npm run dev