Skip to content

lecong/sveltekit-micro-frontend

Repository files navigation

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.jsSvelteKit
  • Change repository name: nextjs-templatewebapp-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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published