create-fs-app 2.0.0 β 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +233 -417
- package/dist/core/health-check.d.ts +3 -9
- package/dist/core/health-check.js +59 -174
- package/dist/core/health-check.js.map +1 -1
- package/dist/core/presets.d.ts +4 -0
- package/dist/core/presets.js +33 -7
- package/dist/core/presets.js.map +1 -1
- package/dist/core/registry-fetch.d.ts +20 -0
- package/dist/core/registry-fetch.js +121 -0
- package/dist/core/registry-fetch.js.map +1 -0
- package/dist/core/scaffold.d.ts +8 -0
- package/dist/core/scaffold.js +10 -12
- package/dist/core/scaffold.js.map +1 -1
- package/dist/core/template-cache.js +20 -6
- package/dist/core/template-cache.js.map +1 -1
- package/dist/core/template-clone.d.ts +1 -1
- package/dist/core/template-clone.js +520 -47
- package/dist/core/template-clone.js.map +1 -1
- package/dist/core/template-list.d.ts +33 -22
- package/dist/core/template-list.js +154 -95
- package/dist/core/template-list.js.map +1 -1
- package/dist/core/template-registry.d.ts +52 -31
- package/dist/core/template-registry.js +192 -70
- package/dist/core/template-registry.js.map +1 -1
- package/dist/index.js +539 -217
- package/dist/index.js.bak +872 -0
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +23 -27
- package/dist/types/index.js +24 -8
- package/dist/types/index.js.map +1 -1
- package/dist/utils/validation.d.ts +23 -0
- package/dist/utils/validation.js +47 -10
- package/dist/utils/validation.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,524 +1,340 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="./assets/logo-no-bg.png" alt="create-fs-app" width="500"/>
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
**Stop configuring. Start building.**
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
Production-ready full-stack monorepo in 60 seconds.
|
|
6
7
|
|
|
7
|
-
](https://www.npmjs.com/package/create-fs-app)
|
|
9
|
+
[](https://www.npmjs.com/package/create-fs-app)
|
|
10
|
+
[](https://opensource.org/licenses/ISC)
|
|
11
|
+
[](https://nodejs.org)
|
|
12
|
+
</div>
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
https://github.com/Om-jannu/create-fs-app/raw/master/assets/create-fs-app.mp4
|
|
14
|
-
|
|
15
|
-
> Watch create-fs-app in action - from zero to full-stack app in seconds!
|
|
16
|
-
|
|
17
|
-
## β¨ Features
|
|
18
|
-
|
|
19
|
-
### ποΈ **Monorepo Frameworks**
|
|
20
|
-
- **Turborepo** - High-performance build system with intelligent caching
|
|
21
|
-
- **Nx** - Smart, extensible build framework with powerful dev tools
|
|
22
|
-
- **Lerna** - Time-tested monorepo management
|
|
23
|
-
|
|
24
|
-
### π¨ **Frontend Frameworks**
|
|
25
|
-
- **React** (Vite) - Fast, modern React setup
|
|
26
|
-
- **Next.js** - Production-ready React with SSR/SSG
|
|
27
|
-
- **Vue** - Progressive JavaScript framework
|
|
28
|
-
- **Nuxt** - Vue with SSR and great DX
|
|
29
|
-
- **Angular** - Full-featured TypeScript framework
|
|
30
|
-
|
|
31
|
-
### π οΈ **Backend Frameworks**
|
|
32
|
-
- **Express** - Minimal, flexible Node.js framework
|
|
33
|
-
- **NestJS** - Enterprise-grade Node.js framework
|
|
34
|
-
- **Fastify** - Lightning-fast web framework
|
|
35
|
-
- **Koa** - Modern, elegant middleware framework
|
|
36
|
-
|
|
37
|
-
### πΎ **Databases & ORMs**
|
|
38
|
-
- **PostgreSQL** + Prisma/TypeORM/Drizzle
|
|
39
|
-
- **MongoDB** + Mongoose
|
|
40
|
-
- **MySQL** + Prisma/TypeORM
|
|
41
|
-
- **SQLite** + Prisma
|
|
14
|
+
---
|
|
42
15
|
|
|
43
|
-
|
|
44
|
-
- npm, yarn, pnpm
|
|
16
|
+
## Table of Contents
|
|
45
17
|
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
18
|
+
- [Quick Start](#quick-start)
|
|
19
|
+
- [Interactive Wizard](#interactive-wizard)
|
|
20
|
+
- [Stack Flags](#stack-flags)
|
|
21
|
+
- [Official Templates](#official-templates)
|
|
22
|
+
- [Contributed Templates](#contributed-templates)
|
|
23
|
+
- [All CLI Options](#all-cli-options)
|
|
24
|
+
- [Presets](#presets)
|
|
25
|
+
- [Commands Reference](#commands-reference)
|
|
26
|
+
- [Local Development](#local-development)
|
|
27
|
+
- [Requirements](#requirements)
|
|
28
|
+
- [Contributing](#contributing)
|
|
54
29
|
|
|
55
|
-
|
|
30
|
+
---
|
|
56
31
|
|
|
57
|
-
|
|
32
|
+
## Quick Start
|
|
58
33
|
|
|
59
34
|
```bash
|
|
35
|
+
# Interactive wizard β guides you through every choice
|
|
60
36
|
npx create-fs-app my-app
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Follow the interactive prompts to customize your application.
|
|
64
|
-
|
|
65
|
-
### CLI Options Mode (Fast & Scriptable)
|
|
66
37
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
```bash
|
|
38
|
+
# Pick your stack and skip all prompts
|
|
70
39
|
npx create-fs-app my-app \
|
|
71
|
-
--monorepo turborepo \
|
|
72
40
|
--frontend next.js \
|
|
73
|
-
--backend
|
|
41
|
+
--backend nest.js \
|
|
74
42
|
--database postgresql \
|
|
75
|
-
--orm
|
|
76
|
-
--
|
|
43
|
+
--orm prisma \
|
|
44
|
+
--yes
|
|
45
|
+
|
|
46
|
+
# Use a saved preset
|
|
47
|
+
npx create-fs-app my-app --preset saas-starter
|
|
77
48
|
```
|
|
78
49
|
|
|
79
|
-
|
|
50
|
+
---
|
|
80
51
|
|
|
81
|
-
|
|
52
|
+
## Interactive Wizard
|
|
53
|
+
|
|
54
|
+
Running `npx create-fs-app <name>` without stack flags launches a guided wizard:
|
|
55
|
+
|
|
56
|
+
| Step | Options |
|
|
57
|
+
|------|---------|
|
|
58
|
+
| Monorepo tool | Turborepo, Nx |
|
|
59
|
+
| Frontend | Next.js, React (Vite), Vue, Nuxt, Angular |
|
|
60
|
+
| Backend | NestJS, Express, Fastify (TS), Koa |
|
|
61
|
+
| Database | PostgreSQL, MongoDB, MySQL, SQLite |
|
|
62
|
+
| ORM / ODM | Prisma, TypeORM, Mongoose, Drizzle |
|
|
63
|
+
| Package manager | npm, yarn, pnpm |
|
|
64
|
+
| Styling | Tailwind CSS, CSS, SCSS, styled-components |
|
|
65
|
+
| API style | REST, GraphQL, both |
|
|
66
|
+
| Auth scaffolding | None, JWT |
|
|
67
|
+
| Extras | ESLint, Prettier, Docker, Turbopack, GitHub Actions CI |
|
|
68
|
+
|
|
69
|
+
After selection the CLI:
|
|
70
|
+
1. Fetches the best-matching official template from GitHub
|
|
71
|
+
2. Renames every placeholder to your project name
|
|
72
|
+
3. Initialises a git repository
|
|
73
|
+
4. Installs dependencies with your chosen package manager
|
|
82
74
|
|
|
83
|
-
|
|
75
|
+
---
|
|
84
76
|
|
|
85
|
-
|
|
86
|
-
# See all available templates
|
|
87
|
-
npx create-fs-app list
|
|
77
|
+
## Stack Flags
|
|
88
78
|
|
|
89
|
-
|
|
90
|
-
npx create-fs-app info turborepo-nextjs-nestjs-postgresql-prisma
|
|
79
|
+
Bypass the wizard by passing flags directly. Any flag you omit is prompted for (or uses the `--yes` default).
|
|
91
80
|
|
|
92
|
-
|
|
93
|
-
npx create-fs-app my-app
|
|
81
|
+
```bash
|
|
82
|
+
npx create-fs-app my-app \
|
|
83
|
+
--monorepo turborepo \
|
|
84
|
+
--frontend next.js \
|
|
85
|
+
--backend nest.js \
|
|
86
|
+
--database postgresql \
|
|
87
|
+
--orm prisma \
|
|
88
|
+
--styling tailwind \
|
|
89
|
+
--api-style rest \
|
|
90
|
+
--auth jwt \
|
|
91
|
+
--turbopack \
|
|
92
|
+
--ci \
|
|
93
|
+
--package-manager pnpm \
|
|
94
|
+
--yes
|
|
94
95
|
```
|
|
95
96
|
|
|
96
|
-
###
|
|
97
|
+
### Available values
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
| Flag | Values |
|
|
100
|
+
|------|--------|
|
|
101
|
+
| `--monorepo` | `turborepo`, `nx` |
|
|
102
|
+
| `--frontend` | `next.js`, `react`, `vue`, `nuxt`, `angular` |
|
|
103
|
+
| `--backend` | `nest.js`, `express`, `fastify-ts`, `koa` |
|
|
104
|
+
| `--database` | `postgresql`, `mongodb`, `mysql`, `sqlite` |
|
|
105
|
+
| `--orm` | `prisma`, `typeorm`, `mongoose`, `drizzle` |
|
|
106
|
+
| `--package-manager` | `npm`, `yarn`, `pnpm` |
|
|
107
|
+
| `--styling` | `tailwind`, `css`, `scss`, `styled-components` |
|
|
108
|
+
| `--api-style` | `rest`, `graphql`, `both` |
|
|
109
|
+
| `--auth` | `none`, `jwt` |
|
|
101
110
|
|
|
102
|
-
|
|
103
|
-
pnpm create fs-app my-app
|
|
104
|
-
```
|
|
111
|
+
---
|
|
105
112
|
|
|
106
|
-
|
|
113
|
+
## Official Templates
|
|
107
114
|
|
|
108
|
-
|
|
115
|
+
Official templates are built and maintained by the create-fs-app team. The wizard and stack flags select from this set automatically.
|
|
109
116
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
| Template | Stack |
|
|
118
|
+
|----------|-------|
|
|
119
|
+
| `turborepo-nextjs-nestjs-postgresql-prisma` | Next.js 16 + NestJS 11 + PostgreSQL 16 + Prisma 5 |
|
|
120
|
+
| `turborepo-nextjs-express-postgresql-prisma` | Next.js 15 + Express 4 + PostgreSQL 16 + Prisma 5 |
|
|
121
|
+
| `turborepo-nextjs-nestjs-mongodb-mongoose` | Next.js 16 + NestJS 11 + MongoDB 7 + Mongoose 8 |
|
|
122
|
+
| `turborepo-nextjs-express-mongodb-mongoose` | Next.js 15 + Express 4 + MongoDB 7 + Mongoose 8 |
|
|
123
|
+
| `turborepo-react-nestjs-postgresql-prisma` | React 19 (Vite) + NestJS 11 + PostgreSQL 16 + Prisma 5 |
|
|
124
|
+
| `turborepo-react-express-postgresql-prisma` | React 19 (Vite) + Express 4 + PostgreSQL 16 + Prisma 5 |
|
|
125
|
+
| `turborepo-react-nestjs-mongodb-mongoose` | React 19 (Vite) + NestJS 11 + MongoDB 7 + Mongoose 8 |
|
|
126
|
+
| `turborepo-react-express-mongodb-mongoose` | React 19 (Vite) + Express 4 + MongoDB 7 + Mongoose 8 |
|
|
118
127
|
|
|
119
|
-
|
|
128
|
+
Browse them:
|
|
120
129
|
|
|
121
130
|
```bash
|
|
122
|
-
npx create-fs-app
|
|
123
|
-
|
|
124
|
-
Stack Options:
|
|
125
|
-
--monorepo <framework> Monorepo framework (turborepo, nx, lerna)
|
|
126
|
-
--frontend <framework> Frontend (react, next.js, vue, nuxt, angular)
|
|
127
|
-
--backend <framework> Backend (express, nest.js, fastify, koa)
|
|
128
|
-
--database <db> Database (postgresql, mongodb, mysql, sqlite)
|
|
129
|
-
--orm <orm> ORM (prisma, typeorm, mongoose, drizzle)
|
|
130
|
-
--package-manager <pm> Package manager (npm, yarn, pnpm)
|
|
131
|
-
--styling <solution> Styling (css, scss, tailwind, styled-components)
|
|
132
|
-
--[no-]linting Enable linting (default: true)
|
|
133
|
-
--[no-]docker Include Docker (default: true)
|
|
134
|
-
|
|
135
|
-
Note: All projects use TypeScript by default (no JavaScript option)
|
|
136
|
-
|
|
137
|
-
Template Options:
|
|
138
|
-
-t, --template <name> Use a specific template directly
|
|
139
|
-
|
|
140
|
-
Control Options:
|
|
141
|
-
--no-git Skip git initialization
|
|
142
|
-
--no-install Skip dependency installation
|
|
143
|
-
-h, --help Display help
|
|
144
|
-
-V, --version Display version
|
|
145
|
-
|
|
146
|
-
Commands:
|
|
147
|
-
list, ls List all available templates
|
|
148
|
-
info <template> Show detailed template information
|
|
131
|
+
npx create-fs-app list
|
|
132
|
+
npx create-fs-app list graphql # keyword search
|
|
149
133
|
```
|
|
150
134
|
|
|
151
|
-
|
|
135
|
+
---
|
|
152
136
|
|
|
153
|
-
##
|
|
137
|
+
## Contributed Templates
|
|
154
138
|
|
|
155
|
-
|
|
139
|
+
Community-built variants extend the official stacks with additional tooling (GraphQL, tRPC, Redis, Sentry, etc.).
|
|
140
|
+
Each contributed template is identified by a permanent **UUID v4**.
|
|
156
141
|
|
|
157
142
|
```bash
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
--frontend next.js \
|
|
161
|
-
--backend nest.js \
|
|
162
|
-
--database postgresql \
|
|
163
|
-
--orm prisma \
|
|
164
|
-
--package-manager pnpm
|
|
165
|
-
```
|
|
143
|
+
# Browse contributed templates β shows UUID and contributor
|
|
144
|
+
npx create-fs-app list --contributed
|
|
166
145
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
npx create-fs-app my-shop \
|
|
171
|
-
--monorepo nx \
|
|
172
|
-
--frontend react \
|
|
173
|
-
--backend express \
|
|
174
|
-
--database mongodb \
|
|
175
|
-
--orm mongoose \
|
|
176
|
-
--styling tailwind
|
|
146
|
+
# Scaffold from a contributed template using its UUID
|
|
147
|
+
npx create-fs-app my-app --template bc75b4fb-3d42-4f6e-a8c1-0123456789ab
|
|
177
148
|
```
|
|
178
149
|
|
|
179
|
-
|
|
150
|
+
> **Why UUID?**
|
|
151
|
+
> Keys can be renamed or refactored; UUIDs are permanent. A UUID you copy today will always resolve to the same template.
|
|
180
152
|
|
|
181
|
-
|
|
182
|
-
npx create-fs-app my-blog \
|
|
183
|
-
--monorepo turborepo \
|
|
184
|
-
--frontend vue \
|
|
185
|
-
--backend nest.js \
|
|
186
|
-
--database postgresql \
|
|
187
|
-
--orm prisma
|
|
188
|
-
```
|
|
153
|
+
To add your own template to the contributed registry, see the [templates repo contributing guide](https://github.com/Om-jannu/create-fs-app-templates/blob/master/CONTRIBUTING.md).
|
|
189
154
|
|
|
190
|
-
|
|
155
|
+
---
|
|
191
156
|
|
|
192
|
-
|
|
193
|
-
#!/bin/bash
|
|
194
|
-
# Automated project creation
|
|
195
|
-
npx create-fs-app $PROJECT_NAME \
|
|
196
|
-
--monorepo turborepo \
|
|
197
|
-
--frontend next.js \
|
|
198
|
-
--backend nest.js \
|
|
199
|
-
--database postgresql \
|
|
200
|
-
--orm prisma \
|
|
201
|
-
--no-git \
|
|
202
|
-
--no-install
|
|
203
|
-
```
|
|
157
|
+
## All CLI Options
|
|
204
158
|
|
|
205
|
-
|
|
159
|
+
```
|
|
160
|
+
npx create-fs-app <project-name> [options]
|
|
206
161
|
|
|
207
|
-
|
|
162
|
+
Stack selection
|
|
163
|
+
--monorepo <framework> turborepo | nx
|
|
164
|
+
--frontend <framework> next.js | react | vue | nuxt | angular
|
|
165
|
+
--backend <framework> nest.js | express | fastify-ts | koa
|
|
166
|
+
--database <db> postgresql | mongodb | mysql | sqlite
|
|
167
|
+
--orm <orm> prisma | typeorm | mongoose | drizzle
|
|
168
|
+
|
|
169
|
+
Customisation
|
|
170
|
+
--styling <style> tailwind | css | scss | styled-components
|
|
171
|
+
--api-style <style> rest | graphql | both (default: rest)
|
|
172
|
+
--auth <strategy> none | jwt (default: none)
|
|
173
|
+
--turbopack Enable Turbopack dev server (Next.js only)
|
|
174
|
+
--ci Add GitHub Actions CI workflow
|
|
175
|
+
--no-eslint Disable ESLint
|
|
176
|
+
--no-prettier Disable Prettier
|
|
177
|
+
--no-docker Skip Docker Compose
|
|
178
|
+
|
|
179
|
+
Template sources
|
|
180
|
+
--template <uuid> Use a contributed template by UUID v4
|
|
181
|
+
--template-url <url> Use any GitHub repo as a template source
|
|
182
|
+
--preset <name> Use a saved configuration preset
|
|
183
|
+
|
|
184
|
+
Behaviour
|
|
185
|
+
--package-manager <pm> npm | yarn | pnpm
|
|
186
|
+
--no-git Skip git initialization
|
|
187
|
+
--no-install Skip dependency installation
|
|
188
|
+
--no-cache Force fresh download, skip cache
|
|
189
|
+
-y, --yes Accept all defaults, skip prompts
|
|
190
|
+
|
|
191
|
+
Development
|
|
192
|
+
--local-templates <path> Use a local templates repo instead of GitHub
|
|
193
|
+
```
|
|
208
194
|
|
|
209
|
-
|
|
195
|
+
---
|
|
210
196
|
|
|
211
|
-
|
|
197
|
+
## Presets
|
|
212
198
|
|
|
213
|
-
|
|
199
|
+
Save a flag combination as a named preset and re-use it with a single word.
|
|
214
200
|
|
|
215
201
|
```bash
|
|
216
|
-
#
|
|
217
|
-
|
|
202
|
+
# Save a preset
|
|
203
|
+
npx create-fs-app preset save my-stack \
|
|
204
|
+
--description "NestJS + Next.js + PostgreSQL"
|
|
218
205
|
|
|
219
|
-
#
|
|
220
|
-
|
|
206
|
+
# List all presets (built-ins + yours)
|
|
207
|
+
npx create-fs-app preset list
|
|
221
208
|
|
|
222
|
-
#
|
|
223
|
-
|
|
209
|
+
# Use a preset
|
|
210
|
+
npx create-fs-app new-project --preset my-stack
|
|
224
211
|
|
|
225
|
-
#
|
|
226
|
-
create-fs-app my-
|
|
227
|
-
# or
|
|
228
|
-
create-fs-app my-app --template turborepo-nextjs-nestjs-postgresql-prisma
|
|
229
|
-
```
|
|
212
|
+
# Overwrite a preset
|
|
213
|
+
npx create-fs-app preset save my-stack --force
|
|
230
214
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
npm unlink -g create-fs-app
|
|
215
|
+
# Delete a preset
|
|
216
|
+
npx create-fs-app preset delete my-stack
|
|
234
217
|
```
|
|
235
218
|
|
|
236
|
-
###
|
|
219
|
+
### Built-in presets (read-only)
|
|
237
220
|
|
|
238
|
-
|
|
221
|
+
| Name | Stack |
|
|
222
|
+
|------|-------|
|
|
223
|
+
| `saas-starter` | Next.js + NestJS + PostgreSQL + Prisma + JWT + Docker |
|
|
224
|
+
| `mern-stack` | React (Vite) + Express + MongoDB + Mongoose |
|
|
225
|
+
| `t3-inspired` | Next.js + NestJS + PostgreSQL + Prisma + GraphQL |
|
|
239
226
|
|
|
240
|
-
|
|
241
|
-
# Build the project
|
|
242
|
-
npm run build
|
|
227
|
+
---
|
|
243
228
|
|
|
244
|
-
|
|
245
|
-
node dist/index.js my-app
|
|
229
|
+
## Commands Reference
|
|
246
230
|
|
|
247
|
-
|
|
248
|
-
node dist/index.js my-app --template turborepo-nextjs-nestjs-postgresql-prisma
|
|
231
|
+
### `list [search]`
|
|
249
232
|
|
|
250
|
-
|
|
251
|
-
|
|
233
|
+
```bash
|
|
234
|
+
npx create-fs-app list # official templates
|
|
235
|
+
npx create-fs-app list --contributed # community templates
|
|
236
|
+
npx create-fs-app list --all # both sections
|
|
237
|
+
npx create-fs-app list graphql # keyword search
|
|
252
238
|
```
|
|
253
239
|
|
|
254
|
-
###
|
|
240
|
+
### `info <template>`
|
|
255
241
|
|
|
256
|
-
|
|
242
|
+
Show full details for any template.
|
|
257
243
|
|
|
258
244
|
```bash
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
# Terminal 2: Run the CLI (rebuilds automatically)
|
|
263
|
-
node dist/index.js my-app
|
|
245
|
+
npx create-fs-app info turborepo-nextjs-nestjs-postgresql-prisma
|
|
246
|
+
npx create-fs-app info graphql
|
|
264
247
|
```
|
|
265
248
|
|
|
266
|
-
###
|
|
249
|
+
### `preset <subcommand>`
|
|
267
250
|
|
|
268
251
|
```bash
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
# Run with npx pointing to local dist
|
|
273
|
-
npx ./dist/index.js my-app
|
|
252
|
+
npx create-fs-app preset list
|
|
253
|
+
npx create-fs-app preset save <name> [--description "..."] [--force]
|
|
254
|
+
npx create-fs-app preset delete <name>
|
|
274
255
|
```
|
|
275
256
|
|
|
276
|
-
###
|
|
277
|
-
|
|
278
|
-
1. Make changes to source files in `src/`
|
|
279
|
-
2. Run `npm run build` (or `npm run dev` for watch mode)
|
|
280
|
-
3. Test with one of the methods above
|
|
281
|
-
4. Test different scenarios:
|
|
282
|
-
```bash
|
|
283
|
-
# Interactive mode
|
|
284
|
-
create-fs-app test-app
|
|
285
|
-
|
|
286
|
-
# CLI options mode
|
|
287
|
-
create-fs-app test-app --monorepo turborepo --frontend next.js
|
|
288
|
-
|
|
289
|
-
# Template mode
|
|
290
|
-
create-fs-app test-app --template turborepo-nextjs-nestjs-postgresql-prisma
|
|
291
|
-
|
|
292
|
-
# List templates
|
|
293
|
-
create-fs-app list
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
## Requirements
|
|
297
|
-
|
|
298
|
-
- Node.js 16.0.0 or later
|
|
299
|
-
- npm 7+ or yarn 1.22+ or pnpm 7+
|
|
300
|
-
|
|
301
|
-
## Project Structure
|
|
257
|
+
### `health`
|
|
302
258
|
|
|
303
|
-
|
|
259
|
+
Verify your environment is ready.
|
|
304
260
|
|
|
261
|
+
```bash
|
|
262
|
+
npx create-fs-app health
|
|
305
263
|
```
|
|
306
|
-
my-app/
|
|
307
|
-
βββ apps/
|
|
308
|
-
β βββ frontend/ # Frontend application
|
|
309
|
-
β β βββ src/
|
|
310
|
-
β β βββ package.json
|
|
311
|
-
β βββ backend/ # Backend application
|
|
312
|
-
β βββ src/
|
|
313
|
-
β βββ package.json
|
|
314
|
-
βββ packages/
|
|
315
|
-
β βββ shared/ # Shared utilities and components
|
|
316
|
-
βββ package.json # Root package.json
|
|
317
|
-
βββ README.md
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
## Configuration Options
|
|
321
|
-
|
|
322
|
-
### Monorepo Frameworks
|
|
323
|
-
|
|
324
|
-
- **Turborepo**: High-performance build system with task caching
|
|
325
|
-
- **Nx**: Smart and extensible build framework
|
|
326
|
-
- **Lerna**: Original monorepo management tool
|
|
327
|
-
|
|
328
|
-
### Frontend Frameworks
|
|
329
|
-
|
|
330
|
-
- **React**: Popular UI library with Vite setup
|
|
331
|
-
- **Next.js**: Full-featured React framework with SSR
|
|
332
|
-
- **Vue**: Progressive JavaScript framework
|
|
333
|
-
- **Nuxt**: Vue.js framework with SSR support
|
|
334
|
-
- **Angular**: Full-featured TypeScript framework
|
|
335
264
|
|
|
336
|
-
|
|
265
|
+
Checks: **Node.js β₯ 18**, **Git**, **Docker** (binary + daemon), **npm**, **pnpm**, **yarn**.
|
|
337
266
|
|
|
338
|
-
|
|
339
|
-
- **NestJS**: Progressive Node.js framework
|
|
340
|
-
- **Fastify**: Fast and low overhead framework
|
|
341
|
-
- **Koa**: Modern middleware framework
|
|
342
|
-
|
|
343
|
-
### Database Options
|
|
344
|
-
|
|
345
|
-
- **MongoDB**: NoSQL database
|
|
346
|
-
- **PostgreSQL**: Advanced SQL database
|
|
347
|
-
- **MySQL**: Popular SQL database
|
|
348
|
-
- **SQLite**: Lightweight SQL database
|
|
349
|
-
|
|
350
|
-
### ORM Options
|
|
351
|
-
|
|
352
|
-
- **Prisma**: Modern database toolkit
|
|
353
|
-
- **TypeORM**: TypeScript ORM
|
|
354
|
-
- **Mongoose**: MongoDB ODM
|
|
355
|
-
- **Drizzle**: Lightweight SQL ORM
|
|
356
|
-
|
|
357
|
-
## Scripts
|
|
358
|
-
|
|
359
|
-
Common scripts available in generated projects:
|
|
267
|
+
### `cache <subcommand>`
|
|
360
268
|
|
|
361
269
|
```bash
|
|
362
|
-
#
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
# Building
|
|
366
|
-
npm run build # Build all applications
|
|
367
|
-
|
|
368
|
-
# Testing
|
|
369
|
-
npm run test # Run tests across applications
|
|
370
|
-
|
|
371
|
-
# Linting
|
|
372
|
-
npm run lint # Lint all applications
|
|
270
|
+
npx create-fs-app cache stats # show cache size and template count
|
|
271
|
+
npx create-fs-app cache clear # wipe cached templates
|
|
373
272
|
```
|
|
374
273
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
If you choose Docker support, your project will include:
|
|
378
|
-
|
|
379
|
-
- `Dockerfile` for containerization
|
|
380
|
-
- `.dockerignore` for excluding files
|
|
381
|
-
- Docker Compose setup for development
|
|
382
|
-
|
|
383
|
-
## ποΈ How It Works
|
|
384
|
-
|
|
385
|
-
`create-fs-app` uses a **template-based architecture** for lightning-fast project creation:
|
|
386
|
-
|
|
387
|
-
1. **Choose your stack** - Select frameworks via interactive prompts or CLI options
|
|
388
|
-
2. **Template matching** - CLI finds the perfect pre-built template
|
|
389
|
-
3. **Clone & customize** - Template is cloned from GitHub and customized with your project name
|
|
390
|
-
4. **Ready to code** - Complete, working application in seconds
|
|
391
|
-
|
|
392
|
-
### Why Template-Based?
|
|
274
|
+
Cache location: `~/.create-fs-app/`
|
|
393
275
|
|
|
394
|
-
|
|
395
|
-
- π― **Tested** - Every template is a real, working project
|
|
396
|
-
- π **Up-to-date** - Templates maintained in separate repository
|
|
397
|
-
- π€ **Community** - Easy for anyone to contribute templates
|
|
398
|
-
- π¦ **Lightweight** - CLI stays tiny (39.5 KB compressed)
|
|
399
|
-
|
|
400
|
-
## π Documentation
|
|
401
|
-
|
|
402
|
-
- **[CLI Usage Guide](./docs/CLI_USAGE.md)** - Complete CLI reference and examples
|
|
403
|
-
- **[Quick Reference](./docs/QUICK_REFERENCE.md)** - Quick command reference
|
|
404
|
-
- **[Template Contribution Guide](./docs/TEMPLATE_CONTRIBUTION_GUIDE.md)** - How to create templates
|
|
405
|
-
- **[Contributing](./CONTRIBUTING.md)** - Contribution guidelines
|
|
406
|
-
- **[Changelog](./CHANGELOG.md)** - Version history
|
|
407
|
-
|
|
408
|
-
## π€ Contributing
|
|
409
|
-
|
|
410
|
-
We welcome contributions! There are many ways to help:
|
|
411
|
-
|
|
412
|
-
### 1. Create New Templates
|
|
413
|
-
|
|
414
|
-
The fastest way to contribute! Create templates for popular stack combinations.
|
|
415
|
-
|
|
416
|
-
See the **[Template Creation Guide](./docs/TEMPLATE_CONTRIBUTION_GUIDE.md)** to get started.
|
|
417
|
-
|
|
418
|
-
### 2. Improve the CLI
|
|
419
|
-
|
|
420
|
-
- Report bugs
|
|
421
|
-
- Suggest features
|
|
422
|
-
- Submit PRs
|
|
423
|
-
- Improve documentation
|
|
276
|
+
---
|
|
424
277
|
|
|
425
|
-
|
|
278
|
+
## Local Development
|
|
426
279
|
|
|
427
|
-
**Quick start:**
|
|
428
280
|
```bash
|
|
429
|
-
# 1.
|
|
430
|
-
git clone https://github.com/
|
|
281
|
+
# 1. Clone
|
|
282
|
+
git clone https://github.com/Om-jannu/create-fs-app.git
|
|
283
|
+
cd create-fs-app
|
|
431
284
|
|
|
432
|
-
# 2.
|
|
433
|
-
|
|
285
|
+
# 2. Install
|
|
286
|
+
npm install
|
|
434
287
|
|
|
435
|
-
# 3.
|
|
436
|
-
npm run
|
|
288
|
+
# 3. Build (TypeScript β dist/)
|
|
289
|
+
npm run build
|
|
437
290
|
|
|
438
|
-
# 4.
|
|
439
|
-
|
|
291
|
+
# 4. Link globally
|
|
292
|
+
npm link
|
|
440
293
|
|
|
441
|
-
# 5.
|
|
294
|
+
# 5. Test
|
|
295
|
+
create-fs-app my-test-app
|
|
442
296
|
|
|
443
|
-
# 6.
|
|
444
|
-
|
|
297
|
+
# 6. Unlink when done
|
|
298
|
+
npm unlink -g create-fs-app
|
|
445
299
|
```
|
|
446
300
|
|
|
447
|
-
###
|
|
448
|
-
|
|
449
|
-
- Star this repo β
|
|
450
|
-
- Share with your network
|
|
451
|
-
- Write blog posts
|
|
452
|
-
- Create video tutorials
|
|
301
|
+
### Point at a local templates repo
|
|
453
302
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
This project is licensed under the ISC License - see the [LICENSE](LICENSE) file for details.
|
|
457
|
-
|
|
458
|
-
## Support
|
|
459
|
-
|
|
460
|
-
- π [Documentation](https://github.com/Om-jannu/create-fs-app/wiki)
|
|
461
|
-
- π [Issue Tracker](https://github.com/Om-jannu/create-fs-app/issues)
|
|
462
|
-
- π¬ [Discussions](https://github.com/Om-jannu/create-fs-app/discussions)
|
|
463
|
-
|
|
464
|
-
## πΊοΈ Roadmap
|
|
465
|
-
|
|
466
|
-
### Phase 1 (Current - v0.1.0)
|
|
467
|
-
- [x] Template-based architecture
|
|
468
|
-
- [x] Interactive CLI with beautiful prompts
|
|
469
|
-
- [x] CLI options mode for automation
|
|
470
|
-
- [x] Template caching system (10x faster)
|
|
471
|
-
- [x] Configuration presets
|
|
472
|
-
- [x] Custom template URLs
|
|
473
|
-
- [x] Project health check
|
|
474
|
-
- [x] Comprehensive error handling
|
|
475
|
-
- [x] Replaced inquirer with prompts (lighter)
|
|
476
|
-
- [ ] Create 10+ core templates
|
|
477
|
-
|
|
478
|
-
### Phase 2 (Next)
|
|
479
|
-
- [ ] Separate templates repository
|
|
480
|
-
- [ ] Website for template browsing
|
|
481
|
-
- [ ] 25+ templates covering popular stacks
|
|
482
|
-
- [ ] Community template contributions
|
|
483
|
-
- [ ] Template versioning
|
|
484
|
-
|
|
485
|
-
### Phase 3 (Future)
|
|
486
|
-
- [ ] Template marketplace
|
|
487
|
-
- [ ] VS Code extension
|
|
488
|
-
- [ ] Project migration tool
|
|
489
|
-
- [ ] Interactive template builder
|
|
490
|
-
|
|
491
|
-
## π Showcase
|
|
303
|
+
```bash
|
|
304
|
+
git clone https://github.com/Om-jannu/create-fs-app-templates.git ../create-fs-app-templates
|
|
492
305
|
|
|
493
|
-
|
|
306
|
+
create-fs-app my-app \
|
|
307
|
+
--frontend next.js --backend nest.js --database postgresql --orm prisma \
|
|
308
|
+
--local-templates ../create-fs-app-templates \
|
|
309
|
+
--yes
|
|
310
|
+
```
|
|
494
311
|
|
|
495
|
-
|
|
312
|
+
This skips GitHub entirely and copies the template straight from your local clone.
|
|
496
313
|
|
|
497
|
-
|
|
314
|
+
---
|
|
498
315
|
|
|
499
|
-
|
|
500
|
-

|
|
501
|
-

|
|
316
|
+
## Requirements
|
|
502
317
|
|
|
503
|
-
|
|
318
|
+
| Tool | Minimum version |
|
|
319
|
+
|------|----------------|
|
|
320
|
+
| Node.js | **18.0.0** |
|
|
321
|
+
| npm | bundled with Node.js |
|
|
322
|
+
| Git | any recent |
|
|
323
|
+
| Docker | optional β used inside generated projects only |
|
|
504
324
|
|
|
505
|
-
|
|
325
|
+
---
|
|
506
326
|
|
|
507
|
-
|
|
508
|
-
- [create-react-app](https://github.com/facebook/create-react-app)
|
|
509
|
-
- [create-next-app](https://github.com/vercel/next.js/tree/canary/packages/create-next-app)
|
|
510
|
-
- [create-t3-app](https://github.com/t3-oss/create-t3-app)
|
|
327
|
+
## Contributing
|
|
511
328
|
|
|
512
|
-
|
|
329
|
+
See **[CONTRIBUTING.md](./CONTRIBUTING.md)** for:
|
|
513
330
|
|
|
514
|
-
|
|
331
|
+
- Reporting bugs and requesting features
|
|
332
|
+
- Development environment setup
|
|
333
|
+
- Pull request process and code standards
|
|
334
|
+
- How to contribute a template to the community registry
|
|
515
335
|
|
|
516
336
|
---
|
|
517
337
|
|
|
518
|
-
|
|
519
|
-
Made with β€οΈ by <a href="https://github.com/Om-jannu">Om Jannu</a>
|
|
520
|
-
</p>
|
|
338
|
+
## License
|
|
521
339
|
|
|
522
|
-
|
|
523
|
-
<sub>If this tool helped you, please consider starring β the repo!</sub>
|
|
524
|
-
</p>
|
|
340
|
+
ISC Β© [Om-jannu](https://github.com/Om-jannu)
|