Skip to content

SilentRhetoric/solidjs-ts-tw-daisy-pwa-template

Repository files navigation

SolidJS Template with Vite, TypeScript, TailwindCSS, DaisyUI, and PWA Support

Quick Start

This template is meant to be used via the degit utility to create a new project by copying the template.

$ npx degit SilentRhetoric/solidjs-ts-tw-daisy-pwa-template my-solid-project
$ cd my-solid-project
$ pnpm install # or npm install or yarn install

Template dependencies are maintained via pnpm via pnpm up -Lri.

This is the reason you see a pnpm-lock.yaml. That being said, any package manager will work. This file can be safely be removed once you clone a template.

Available Scripts

In the project directory, you can run:

npm run dev or npm start

Runs the app in the development mode Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the dist folder. It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)

Technologies and Resources

SolidJS

Learn more on the Solid Website and come chat with us on our Discord

Vite

https://vitejs.dev/

TypeScript

https://www.typescriptlang.org/docs/

TailwindCSS

https://tailwindcss.com/docs/installation

DaisyUI

https://daisyui.com/components/

ESLint

https://eslint.org/

Prettier

https://prettier.io/

Favicon

https://realfavicongenerator.net

Progressive Web App (PWA)

https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps