fastnode-cli
v0.1.2
Published
A CLI tool for generating and managing FastNode projects using NestJS, inspired by FastAPI.
Maintainers
Readme
🧪 fastnode-cli
The official CLI tool for scaffolding and managing FastNode projects — bringing the simplicity of FastAPI to the Node.js ecosystem with NestJS under the hood.
🚀 Features
- 📦 Instantly scaffold a FastNode-based project
- 🧱 Generate modules, services, controllers, and more
- ⚙️ Built-in support for TypeScript
- 📂 Clean project structure inspired by FastAPI
- 🧪 Easy to extend and integrate with
fastnode-core
📦 Installation
npm install -g fastnode-cli🛠️ Usage
Create a new project
fastnode create my-appInstall Packages
cd my-app
npm installRun the Project
fastnode serve my-app
This creates a new FastNode project in the my-app folder.
Generate a module
fastnode generate module userCreates a user module with its own folder, service, and controller.
Generate a service
fastnode generate service authGenerate a controller
fastnode generate controller auth📁 Folder Structure
Here’s what a typical FastNode project looks like:
src/
├── app.module.ts
├── main.ts
└── modules/
├── user/
│ ├── user.controller.ts
│ ├── user.module.ts
│ └── user.service.ts🔧 Configuration
You can customize the CLI's behavior with a .fastnoderc config file (coming soon).
📚 Documentation
See the core framework:
👉 fastnode-core
🤝 Contributing
Pull requests are welcome! Please open an issue first to discuss what you’d like to change.
📄 License
MIT License
💡 Inspiration
Inspired by how fast and intuitive FastAPI is for Python developers, fastnode aims to bring that same DX (developer experience) to the Node.js/NestJS world.
🔗 Links
- CLI: fastnode-cli on npm
- Core: fastnode-core on npm
