@1fe/create-1fe-app
v0.0.7
Published
Create new 1FE applications with pre-configured setup and best practices
Readme
@1fe/create-1fe-app
🚀 CLI tool to quickly scaffold a new 1fe instance
A command-line interface for creating new 1fe (One Frontend) instance
📋 Table of Contents
🔧 Requirements
- Node.js 22 or higher (enforced at runtime)
- yarn package manager
📦 Installation
Using npx (Recommended)
# Create a new 1fe app without installing globally
npx @1fe/create-1fe-app my-awesome-appUsing npm (Global Installation)
# Install globally
npm install -g @1fe/create-1fe-app
# Create a new app
create-1fe-app my-awesome-appUsing yarn (Global Installation)
# Install globally
yarn global add @1fe/create-1fe-app
# Create a new app
create-1fe-app my-awesome-app🚀 Usage
Basic Usage
create-1fe-app <app-name>Example
# Create a new app called "my-1fe-app"
create-1fe-app my-1fe-appThis will:
- ✅ Verify Node.js version (must be 22+)
- 🔗 Clone the latest 1fe starter template
- 📁 Create a new directory with your app name
- 🧹 Remove git history to start fresh
🎯 Next Steps
After creating your app, follow these steps:
Navigate to your app directory:
cd my-appInstall dependencies:
yarnStart the development server:
yarn devOpen your browser:
http://localhost:3001Start building your app! 🎉
🔍 Troubleshooting
Node Version Error
🛑 Node.js version error!
Current version: v18.16.0
Minimum required version: 22.x.xSolution: Update to Node.js 22 or higher:
# Using nvm (recommended)
nvm install 22
nvm use 22
# Or download from https://nodejs.org/🔗 Related
- 1fe Documentation - Complete 1fe framework docs
- Starter Template - The template this tool clones
🤝 Community
If you have questions or want to discuss this project, please visit the Issues or Discussions pages in our monorepo.
Made with ❤️ by the 1fe team
