• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language Svelte
  • License
    MIT License
  • Created over 4 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SvelteKit x Tailwind CSS x Supabase x Turborepo (pnpm)

WebApp Template

Monorepo template for creating a web application.

What's inside?

Uses

Apps and Packages

apps/

packages/

  • ui
    A stub Svelte component library.
  • tailwind-preset-base
    A preset for use with tailwind.config.js and global.css.
  • eslint-config-custom
    eslint configurations. (w/ prettier-plugin-svelte + eslint-config-[prettier|turbo])

VS Code Extensions (Recommend)

Breaking changes

v1.6.0

  • Change from TypeScript to JavaScript + JSDoc

v1.0.0

  • Change frontend framework (apps/web): Next.js โ†’ SvelteKit
  • Change repository name: nextjs-template โ†’ webapp-template

v0.23.0

Commands

pnpm i  # Resolve dependency packages and prepare .env files
# Then set up /.env

pnpm build   # Build all apps and packages
pnpm dev     # Set up file monitoring builds and local servers for development
pnpm lint    # eslint + markuplint | prettier --check
pnpm test    # Testing
pnpm format  # eslint --fix + prettier --write + format project-words.txt

List of listening port numbers

  • 1337: apps/nhost/ - Hasura
    • 3030: Nhost Dashboard
    • 5432: Postgres
    • 8080: GraphQL Endpoint
    • 8025: MailHog
    • 9695: Hasura Console
  • 5173: apps/web/ - SvelteKit application
  • 6006: apps/story/ - Storybook
  • 8000: apps/mockup/ - Static site
  • 49160: apps/mockup/ - Express server

Registering environment variables for GitHub / Vercel

If you need to prepare GitHub / Vercel environment, you need to set all environment variables (.env items) in each service.