Collection of few commands to startup sveltekit project from scratch.
npm create svelte@latest my-app
cd my-app
npm install
npx svelte-add@latest tailwindcss --typography
npm install
{
"alias": {
"$lib": "./src/lib",
"$lib/*": "./src/lib/*"
}
}
npx shadcn-svelte@latest init
npx shadcn-svelte@latest add -y -o # Select All Components `A`
npm install -D prisma
npx prisma init
npx prisma db push
npx prisma generate
Change DATASOURCE_URL from .env
{
"prisma": {
"seed": "node --no-warnings=ExperimentalWarning --loader ts-node/esm prisma/seed.ts"
}
}
npm install -D typescript ts-node @types/node
npx prisma db seed
npm install -D svelte-french-toast
npm install -D sveltekit-superforms zod
npm install -D lucide-svelte