quick-sveltekit
Quick start template for SvelteKit application
Prerequisite
- Install Node LTS
- Install pnpm package manager by running
npm i -g pnpm
command
- (Optionally) Docker for container image debugging
Development
- Create a repository by using this repository as a template
- Install dependencies with
pnpm i
command
- Develop anything with
pnpm dev
!
Deployment
- Create project in Deploys.app console. This project ID will be
DEPLOYS_NAME
secrets
- Create deployment credentials
- Create service account at Service Accounts > Create. You will get service account email address which will be
DEPLOYS_AUTH_USER
secrets
- Click into service account email and click Create key button. You will get deployment key which will be
DEPLOYS_AUTH_PASS
secrets
- Create a role at Roles > Create with
deployment.*
permissions
- Create user at Users > Add with service account email, and role that created earlier
- Add those secrets into GitHub via Settings > Secrets and variables > Actions
- Push a commit to trigger deployment or mannualy trigger it yourself in Actions tab
Local deployment troubleshooting
- Make sure Docker service as active
- Build image locally with
docker build -t quick-sveltekit .
- Run production image with
docker run --name next-debug -p 3000:3000 quick-sveltekit
- Deployment should be active locally at http://localhost:3000