create-nano-framework-app
v0.1.0
Published
Scaffold a new Nano Framework application
Downloads
4
Maintainers
Readme
@nano-framework/create-nano-app
Scaffold a new Nano Framework application with your choice of frontend framework.
Usage
# With npm
npm create @nano-framework/nano-app@latest my-app
# With yarn
yarn create @nano-framework/nano-app my-app
# With pnpm
pnpm create @nano-framework/nano-app my-app
# With bun
bun create @nano-framework/nano-app my-app
# Alternative: using npx directly
npx @nano-framework/create-nano-app my-appWhat it does
The CLI will prompt you to select:
- Frontend Framework: SolidJS, React, or Vue
- Package Manager: npm, yarn, pnpm, or bun
- Template UI: Include template components (optional)
- Install Dependencies: Automatically install dependencies
Supported Frameworks
- SolidJS - Fine-grained reactive UI library
- React - Popular UI library with hooks
- Vue - Progressive JavaScript framework
Features
- 🚀 Desktop Applications - Native desktop apps with Rust backend
- ⚡ Hot Reload - Fast development with Vite + Cargo watch
- 📦 Portable Builds - Single executable with embedded assets
- 🎨 VS Code Theme - Professional dark theme
- 🔧 Configurable - Window properties, server settings via JSON
- 🌐 HTTP API - RESTful API with Axum backend
- 🎯 TypeScript Ready - Full TypeScript support
Project Structure
my-app/
├── src-nano/ # Rust backend
│ ├── main.rs # Entry point
│ ├── server.rs # HTTP server
│ └── modules/ # API modules
├── src/ # Frontend source
├── nano.config.json # App configuration
├── Cargo.toml # Rust dependencies
└── package.json # Node dependenciesDevelopment Commands
# Start development with hot reload
npm run nano:hot
# Build and run
npm run nano
# Build portable release
npm run nano:releaseRequirements
Documentation
License
MIT
