/sveltekit-for-beginners

💪 Full stack web development with SvelteKit

Primary LanguageSvelte

SvelteKit For Beginners

Learn full stack web development with SvelteKit.

Project Setup

🧑‍🤝‍🧑 Clone the project

git clone https://github.com/joysofcode/sveltekit-for-beginners.git

📦️ Install dependencies

npm i

Database

✏️ Rename .env.example to .env

DATABASE_URL="file:./dev.db"

🔨 Create the database from the Prisma schema

npx prisma db push

🌱 Seed the database

npx prisma db seed

🔎 Inspect your database with Prisma Studio

npx prisma studio

Development

🦄 Start the project and open http://localhost:3000/

npm run dev

Production

🔨 Build and preview

npm run build && npm run preview