This script provides a command-line utility for quickly scaffolding a full-stack application with a Vite client (React, TypeScript) and an Express server (TypeScript). It generates the necessary folder structure, installs dependencies, and sets up basic configurations.
-
Client Setup:
- Vite with React and TypeScript template โ๏ธ๐ป
- React with SWC support for faster builds โก
- Pre-configured client-side folder structure ๐๏ธ
-
Server Setup:
- Express server with TypeScript ๐ฅ๏ธ๐ง
- TypeScript configuration for the server ๐
- Pre-configured server-side folder structure ๐๏ธ
- Includes nodemon for automatic server restarts during development ๐
-
Standard Files:
README.md
๐LICENSE
(MIT License) ๐.gitignore
for ignoring node_modules, build artifacts, and environment files ๐ซ
- client/: Contains the client-side code, set up with Vite, React, and TypeScript.
- server/: Contains the server-side code, set up with Express and TypeScript.
client/
โโโ src/
โ โโโ assets/ # Static assets ๐ผ๏ธ
โ โโโ components/ # Reusable components ๐ง
โ โโโ hooks/ # Custom React hooks ๐
โ โโโ services/ # Client-side API services ๐
โ โโโ types/ # TypeScript types ๐ท๏ธ
โ โโโ utils/ # Utility functions ๐ ๏ธ
server/
โโโ src/
โ โโโ models/ # Data models ๐๏ธ
โ โโโ controllers/ # Request handling logic ๐ฎ
โ โโโ routes/ # API route definitions ๐ฆ
โ โโโ services/ # Server-side services ๐
โ โโโ middlewares/ # Express middlewares ๐
โ โโโ types/ # TypeScript types ๐ท๏ธ
โ โโโ utils/ # Utility functions ๐ ๏ธ
As this script was published as an npm package, you can execute it directly via the command line with
npx vite-express-cli <your-project-name>
This project is licensed under the MIT License - see the LICENSE file for details.
- Lennard Geiรler (@LennardGeissler)