kix-cli
v1.0.3
Published
A CLI to scaffold & create Express backend projects quickly
Maintainers
Readme
Kix CLI
Kix is a CLI tool for shipping Javascript/Typescript projects.
Think of the architecture as a pipeline, a chain of functions performing duties and passing info to the next function until the intended task is completed.
Installation
npm install -g kix-cliCommands
kix create <projectName>
Scaffolds a new full-stack project interactively.
kix create my-appYou will be prompted to choose:
- Stack — MERN, PERN, or Express
- Language — JavaScript or TypeScript
- Package Manager — npm, yarn, or bun
- Frontend — Next.js or Vue
- Database — MongoDB or PostgreSQL (Express only — MERN defaults to MongoDB, PERN defaults to PostgreSQL)
- GitHub Repo — optional, press Enter to skip
kix push <repoUrl>
Initializes git, commits all files, and pushes to the provided GitHub repo URL.
kix push https://github.com/your-username/your-repo.gitkix delete-env
Removes .env files from your entire Git history using git filter-repo.
kix delete-envRequires
git-filter-repoto be installed. You will need to force push after running this.
Generated Project Structure
MERN / PERN
my-app/
├── frontend/ # Next.js or Vue (Vite)
└── backend/ # ExpressExpress (standalone)
my-app/
└── backend/Backend structure
backend/
├── config/
│ └── db.js / db.ts # Database connection (MongoDB or PostgreSQL)
├── src/
│ ├── controllers/
│ ├── middleware/
│ ├── routes/
│ ├── services/
│ ├── utils/
│ └── server.js / server.ts
├── server.js / server.ts # Entry point
├── .env
├── .gitignore
└── package.jsonFrontend — Next.js
frontend/
├── src/
│ └── app/
│ └── page.tsx / page.jsx # Fetches "/" from backend
├── .env.local # NEXT_PUBLIC_API_URL=http://localhost:3000
└── ...Frontend — Vue (Vite)
frontend/
├── src/
│ └── App.vue / App.tsx # Fetches "/" from backend
├── .env # VITE_API_URL=http://localhost:3000
└── ...Environment Variables
Backend .env
MongoDB:
PORT=3000
MONGO_URI=<your-mongo-uri-here>PostgreSQL:
PORT=3000
DATABASE_URL=<your-postgres-url-here>Frontend .env.local (Next.js)
NEXT_PUBLIC_API_URL=http://localhost:3000Frontend .env (Vue)
VITE_API_URL=http://localhost:3000Running the Project
cd my-app/backend
npm run devcd my-app/frontend
npm run devLicense
ISC
