open-index/open-npm huggingface dataset:
npm package: @jay_costa/create-devstack
Description: CLI tool to generate backend project stacks
Latest version: 1.0.0

# create-devstack

`create-devstack` is a Node.js CLI that scaffolds backend project templates for:

- Rust
- FastAPI
- Express
- NestJS

With database choices such as:

- PostgreSQL
- MongoDB

And database environment modes:

- Local
- Docker
- External

## Project Structure

```text
devstack-cli/
  bin/
    devstack.js
  src/
    cli.js
    generator.js
    prompts.js
    templates/
  package.json
  README.md
  .npmignore
```

## Installation

```bash
npm install -g @jay_costa/create-devstack
```

## Usage

```bash
create-devstack my-project
```

The CLI prompts for:

- framework (FastAPI, Express, NestJS, Rust)
- architecture (MVC)
- database (PostgreSQL, MongoDB)
- database environment (Local, Docker, External)

You can also run without global install:

```bash
npx @jay_costa/create-devstack my-api
```

## Local Test Before Publish

From the CLI project root:

```bash
npm install
npm link
create-devstack test-project
```

## Publish as a Public npm Package

1. Confirm package name availability:

```bash
npm view create-devstack
```

2. Login to npm:

```bash
npm login
```

3. Publish publicly:

```bash
npm publish --access public
```

## CI/CD Publish Workflow

This repository includes `.github/workflows/publish.yml` configured to publish with:

```bash
npm publish --access public
```

Set `NPM_TOKEN` in repository secrets before using GitHub Actions publishing.