1.3 KiB

1. SvelteKit Project Scaffolding

  • 1.1 Run npx sv create --types ts --template minimal to scaffold the project
  • 1.2 Install project dependencies with npm install
  • 1.3 Verify svelte.config.js contains adapter-auto configuration
  • 1.4 Verify vite.config.js includes the sveltekit plugin
  • 1.5 Verify tsconfig.json exists and extends .svelte-kit/tsconfig.json
  • 1.6 Verify standard directory structure: src/routes/, src/lib/, static/ exist
  • 1.7 Verify src/app.html contains SvelteKit template placeholders (%sveltekit.head%, %sveltekit.body%)

2. Git Repository Setup

  • 2.1 Run git init in the project root directory
  • 2.2 Create and checkout main branch with git checkout -b main
  • 2.3 Create README.md file with project description
  • 2.4 Stage README with git add README.md
  • 2.5 Create initial commit with git commit -m "first commit"
  • 2.6 Add remote origin (via SSH: ssh://git@veit-fraenzer.de:2222/veitR/PokeR.git)
  • 2.7 Push to remote with git push -u origin main

3. Verification

  • 3.1 Start dev server with npm run dev and confirm it runs on localhost:5173
  • 3.2 Verify git log shows the initial commit
  • 3.3 Verify git remote -v shows correct origin URL
  • 3.4 Verify npx sv check passes without errors (0 errors, 1 minor warning)