GitHub repository for Okupter's SvelteKit workshop: From Zero to Production with SvelteKit.
The workshop was about building a simple course platform using SvelteKit.
This includes user authentication using email and password, and database integration through Planetscale (MySQL).
To start, clone this repository and install the dependencies:
pnpm install
The duplicate the .env.example
file, and rename it to .env
. Then, fill in the environment variables with your own values.
The DATABASE_URL
is the connection string to your MySQL database. We used Planetscale for this workshop, but you are free to use any MySQL database.
The JWT_ENCRYPTION_SECRET
is a secret string that will be used to encrypt the JWT tokens.
You can run this command from a Node.js console to generate a random string:
crypto.randomUUID()
To run the project, use the following command:
pnpm dev
This will start the development server on port 5173.