Setup with CUI
- npx
- npm
- yarn
Terminal
npx create-frourio-app --answers '{"dir":"my-project"}'
Command prompt
npx create-frourio-app --answers "{\\\"dir\\\":\\\"my-project\\\"}"
PowerShell
npx create-frourio-app --answers '{\"dir\":\"my-project\"}'
Terminal
# v6
npm init frourio-app --answers '{"dir":"my-project"}'
# v7 over
npm init frourio-app -- --answers '{"dir":"my-project"}'
Command prompt
# v6
npm init frourio-app --answers "{\\\"dir\\\":\\\"my-project\\\"}"
# v7 over
npm init frourio-app -- --answers "{\\\"dir\\\":\\\"my-project\\\"}"
PowerShell
# v6
npm init frourio-app --answers '{\"dir\":\"my-project\"}'
# v7 over
npm init frourio-app -- --answers '{\"dir\":\"my-project\"}'
Terminal
yarn create frourio-app --answers '{"dir":"my-project"}'
Command prompt
yarn create frourio-app --answers "{\\\"dir\\\":\\\"my-project\\\"}"
PowerShell
yarn create frourio-app --answers '{\"dir\":\"my-project\"}'
answers JSON parameters
Name | Type | Default | Description | When |
---|---|---|---|---|
dir | string | Directory name (create new) | ||
server | "fastify" | "express" | "fastify" | Server engine | |
client | "next" | "nuxt" | "sapper" | "next" | Client framework | |
building | "static" | "basic" | "static" | Building mode | client === "next" || client === 'sapper' |
mode | "spa" | "universal" | "spa" | Rendering mode | client === "nuxt" |
target | "static" | "server" | "static" | Deployment target | client === "nuxt" |
aspida | "axios" | "fetch" | "axios" | HTTP client of aspida | |
reactHooks | "swr" | "query" | "none" | "swr" | React Hooks for data fetching | |
daemon | "none" | "pm2" | "none" | Daemon process manager | |
orm | "prisma" | "typeorm" | "none" | "prisma" | O/R mapping tool | |
prismaDB | "sqlite" | "mysql" | "postgresql" | "sqlite" | DB type of Prisma | orm === "prisma" |
typeormDB | "mysql" | "postgres" | "mysql" | DB type of TypeORM | orm === "typeorm" |
dbHost | string | "localhost" | HOST of DB | orm !== "none" && prismaDB !== "sqlite" |
dbPort | number | Default port of DB type | PORT of DB | orm !== "none" && prismaDB !== "sqlite" |
dbUser | string | USER of DB | orm !== "none" && prismaDB !== "sqlite" | |
dbPass | string | PASS of DB | orm !== "none" && prismaDB !== "sqlite" | |
dbName | string | NAME of DB | orm !== "none" && prismaDB !== "sqlite" | |
dbFile | string | "./dev.db" | DB file path of SQLite | orm === "prisma" && prismaDB === "sqlite" |
testing | "jest" | "node" | "jest" | Testing framework | |
pm | "yarn" | "npm" | "yarn" | Package manager | |
ci | "actions" | "none" | "actions" | CI config |
Once the above command is installed, the browser will automatically open at http://localhost:8000
- Next.js
- Nuxt.js
- Sapper
http://localhost:8000

http://localhost:8000

http://localhost:8000
