create-hstack
v1.0.3
Published
A Node.js CLI tool to scaffold ready-to-use TypeScript/JavaScript backend and React + Vite frontend projects
Maintainers
Readme
It supports TypeScript backend, JavaScript backend, and React + Vite frontend.
This tool simplifies project setup so you can start coding immediately.
Features
- Generate TypeScript backend projects with Express.js
- Generate JavaScript backend projects with Express.js
- Generate React + Vite frontend projects
- Pre-configured folder structure with templates
- Works with
npm createfor fast project initialization
Installation
You don’t need to install globally. Use npm create:
# For the CLI tool
npm create hstack@latest
Follow the prompts to select project type (TypeScript, JavaScript, React) and enter your project name.
Usage
After creating your project, navigate to it:
bash
Copy code
cd <project-name>
Backend (JS / TS)
Run development server:
bash
Copy code
# For JS or TS backend
npm run dev
Build and start (for TS backend only):
bash
Copy code
npm run build
npm start
Frontend (React + Vite)
Run development server:
bash
Copy code
npm run dev
Preview production build:
bash
Copy code
npm run build
npm run preview
Project Structure
TypeScript / JavaScript Backend
pgsql
Copy code
project-name/
├─ src/ # Source files (TS or JS)
├─ dist/ # Compiled files (TS only)
├─ templates/ # Predefined templates
├─ .gitignore
├─ node_modules/
├─ package.json
└─ tsconfig.json # Only for TS projects
React + Vite Frontend
pgsql
Copy code
project-name/
├─ src/
│ ├─ main.jsx
│ ├─ App.jsx
│ ├─ main.css
│ └─ App.css
├─ public/
│ └─ index.html
├─ node_modules/
├─ package.json
├─ vite.config.js
├─ .eslintrc.js
├─ .gitignore
└─ README.md
Contributing
Contributions are welcome! Open an issue or pull request for improvements or fixes.
License
MIT License