A tasty treats podcast for Web Developers.
This is the site that runs Syntax.fm — go there to listen to it!
This site is built on SvelteKit
- Node 20.0.0 or higher
Make sure to have a DATABASE_URL
environmental variable set.
If this is your first time, run pnpm db:push
to create the tables in your database.
Then run pnpm db:seed
to scaffold out the user roles.
First you pnpm install
Then you pnpm dev
and visit http://localhost:5173
.
Generate Types pnpm db:generate
DB studio pnpm db:studio
DB Migrations pnpm db:push
DB Seed pnpm db:seed
Just about all major code folders live in /src
with the exception of /shows
- the md source of truth for all podcast episodes as well as /prisma
for our db connections and schema.
Alias | ||
---|---|---|
/actions |
Svelte Actions, these are reusable functions that act as lifecycle on DOM elements | $actions |
/assets |
Static assets that are used via @import | $assets |
/server |
All database and server-side only reusable code | $server |
/lib |
(SK Paradigm) Components and files that are used in more than one route | $lib |
/params |
(SK Paradigm) This is a SvelteKit specific folder to add validation on parameter based routes | |
/routes |
(SK Paradigm) File System based routing | |
/state |
Global State containers and resolvers | $state |
/styles |
CSS | |
/utilities |
Global Utility functions | $utilities |
These are the available media queries
@custom-media --below_small (width < 400px);
@custom-media --below_med (width < 700px);
@custom-media --below_large (width < 900px);
@custom-media --below_xlarge (width < 1200px);
@custom-media --above_small (width > 400px);
@custom-media --above_med (width > 700px);
@custom-media --above_large (width > 900px);
@custom-media --above_xlarge (width > 1200px);
// Usage
@media (--above_med) {
}