create-nui
v1.0.6
Published
Multi-language project starter for NodeJS and PHP
Maintainers
Readme
Project boilerplate generator
A lightweight project boilerplate generator for multiple ecosystems.
Create production-ready TypeScript and PHP project templates with a single command.
Currently supported:
- ⚡ Node.js + Fastify (TypeScript)
- 🚀 Node.js + Express (TypeScript)
- 🐘 PHP 7.0+ + Snappy Framework
Featured Templates
⚡ Node.js
- Fastify
- Express
Github: https://github.com/bynui/node-template
🐘 PHP
- Snappy — Lightweight PHP framework.
Github: https://github.com/bynui/snappy Documentation: https://bynui.github.io/docs/snappy/
Requirements
Depending on the selected template:
Node.js (TypeScript)
- Git
- Node.js
- npm
Templates are built with TypeScript and come pre-configured with the required tooling.
PHP (Snappy Framework)
- Git
- PHP 7.0 or later
- Composer
Snappy Framework supports PHP 7.0+.
Available Templates
| Runtimes | Language | Framework | Syntax |
| -------- | ---------- | --------- | -------------- |
| Node.js | TypeScript | Fastify | node:fastify |
| Node.js | TypeScript | Express | node:express |
| PHP 7.0+ | PHP | Snappy | php:snappy |
Usage
create-nui <runtimes:framework> <project-name>Example
Create a Fastify or Express project
| Manager | Command |
| ------- | ----------------------------------------- |
| pnpm | pnpm create nui node:<framework> my-app |
| yarn | yarn create nui node:<framework> my-app |
| bun | bun create nui node:<framework> my-app |
| npm | npm create nui node:<framework> my-app |
| npx | npx create-nui node:<framework> my-app |
Replace <framework> with fastify or express.
Create a Snappy Framework project (PHP)
| Manager | Command |
| ------- | ----------------------------------- |
| pnpm | pnpm create nui php:snappy my-app |
| yarn | yarn create nui php:snappy my-app |
| bun | bun create nui php:snappy my-app |
| npm | npm create nui php:snappy my-app |
| npx | npx create-nui php:snappy my-app |
What the generator does
- Downloads the selected project template from GitHub
- Renames the project/package
- Creates
.env.developmentfrom.env.example(if available) - Installs project dependencies automatically
- Generates a project that is ready to run immediately
License
MIT
Author
Shindu Samodra
Github: https://github.com/samodraland Website: https://samodraland.github.io LinkedIn: https://linkedin.com/in/samodra
