create-webfs
v1.1.1
Published
Creates a full-stack project template (React/Vite/Tailwind + Node/Express/TS/JS)
Downloads
24
Maintainers
Readme
create-webfs
create-webfs is an NPX-powered CLI tool that scaffolds a battle-tested fullstack template. It generates a React+Vite frontend (TypeScript, SWC, TailwindCSS) and a Node.js + Express backend (TypeScript or JavaScript), complete with environment modes (local, test, prod), clean architecture (routes/, models/, controllers/), and ORM support for MongoDB, MySQL, and PostgreSQL.
🛠️ Features
- Frontend: React + Vite with TypeScript & SWC, styled with TailwindCSS
- Backend: Node.js + Express, pick TypeScript or JavaScript
- Env Modes:
local,test,prodvia dotenv and.env.{mode}files - Clean Architecture: Pre‑created
routes/,models/,controllers/ - ORM Setup: Ready‑to‑go support for MongoDB (Mongoose), MySQL & PostgreSQL (Sequelize)
- Zero Config: No global installs — just
npx create-webfsand go!
🚀 Installation
Install via npx (always uses the latest version):
npx create-webfs@latest <project-name>Or scaffold in the current directory:
npx create-webfs@latest .Follow the prompt to select your preferred backend flavor (TypeScript or JavaScript). 🎉
📝 Usage
Navigate into your project:
cd <project-name>Frontend:
cd frontend npm install npm run dev # Starts Vite dev server on http://localhost:5173Backend:
cd backend npm install Configure your database connection string in the .env files (e.g., .env.local)' Update the provider in `prisma/schema.prisma` (e.g., "postgresql", "mysql", "mongodb") npx prisma db push #(for initial sync/prototyping) or `npx prisma migrate dev` (recommended for development) npm run start:local # Loads env.local, runs on PORT defined there npm run start:test # Loads env.test npm run start:prod # Loads env.prod
📂 Project Structure
<project-name>/
├── frontend/ # React + Vite + TailwindCSS
│ ├── index.html # HTML entrypoint
│ ├── vite.config.ts
│ └── src/ # Your React code
│ ├── main.tsx
│ └── App.tsx
│
└── backend/ # Node.js + Express
├── env.local # Local environment variables
├── env.test # Test environment variables
├── env.prod # Production environment variables
├── index.ts/js # Express server entrypoint
├── package.json
├── routes/ # Define your routes here
├── models/ # Data models & schemas
├── controllers/ # Route handlers & business logic
└── common/ # ORM setup for MongoDB, MySQL, PostgreSQL❤️ Contributing
- Fork the repo
- Create your feature branch (
git checkout -b feature/awesome) - Commit your changes (
git commit -m "feat: add awesome feature") - Push to the branch (
git push origin feature/awesome) - Open a Pull Request
We welcome all contributions — big or small! 🙌
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
Made with ❤️ by the community. Happy coding! 🌟
