Skip to main content

Setup with CUI

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\"}'

answers JSON parameters

NameTypeDefaultDescriptionWhen
dirstringDirectory name (create new)
server"fastify" | "express""fastify"Server engine
client"next" | "nuxt" | "sapper""next"Client framework
building"static" | "basic""static"Building modeclient === "next" || client === 'sapper'
mode"spa" | "universal""spa"Rendering modeclient === "nuxt"
target"static" | "server""static"Deployment targetclient === "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 Prismaorm === "prisma"
typeormDB"mysql" | "postgres""mysql"DB type of TypeORMorm === "typeorm"
dbHoststring"localhost"HOST of DBorm !== "none" && prismaDB !== "sqlite"
dbPortnumberDefault port of DB typePORT of DBorm !== "none" && prismaDB !== "sqlite"
dbUserstringUSER of DBorm !== "none" && prismaDB !== "sqlite"
dbPassstringPASS of DBorm !== "none" && prismaDB !== "sqlite"
dbNamestringNAME of DBorm !== "none" && prismaDB !== "sqlite"
dbFilestring"./dev.db"DB file path of SQLiteorm === "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

http://localhost:8000