SolidStart-TanStackQuery-Tailwind-Modules
This starter kit features SolidStart, combined with TanStack Query, and Tailwind CSS, and CSS Modules.
Overview
Tech Stack
Included Tooling
- Vitest - Test runner
- Storybook - Component library
- Typescript - Type checking
- ESLint - Code linting
- Prettier - Code formatting
Example Components
Counter src/components/CounterExample
A small counter example that showcases how to use state in SolidStart. You can view the example on the src/pages/Counter
.
Signals can live outside of components. Each relevant component subscribes to its value by using it.
Fetch src/components/FetchExample
Demonstrates how to retrieve data from a third-party API by using createResource
.
Installation
This README is written with npm in mind but you can use other manager runners (yarn, pnpm, etc.)
CLI (Recommended)
npm create @this-dot/starter -- --kit solidstart-tanstackquery-tailwind-modules
- Follow the prompts to select the solidstart-tanstackquery-tailwind-modules starter kit and name your new project.
cd
into your project directory and runnpm install
.- Run
npm run dev
to start the development server. - Open your browser to
http://localhost:5173
to see the included example code running.
Manual
git clone https://github.com/thisdot/starter.dev.git
- Copy and rename the
starters/solidstart-tanstackquery-tailwind-modules
directory to the name of your new project. cd
into your project directory and runnpm install
.- Run
npm run dev
to start the development server. - Open your browser to
http://localhost:5173
to see the included example code running.
Commands
dev
- Starts a development server backed by Vite on localhost port 5173 with HMRbuild
- Builds a production version of the app to deploystart
- Starts the production build with a local version of adaptertest
- Runs the test suitestorybook
- To showcase the component librarylint
- Uses eslint to find potential issues in the codebaselint-fix
- Tries to auto-fix potential issuesformat
- Fixes formatting issues in the codebase
Demo Implementation
The demo application re-implements some of GitHub’s pages and functionality. It uses the OAuth credentials in GitHub to authenticate users with their GitHub accounts and uses window.fetch() to fetch data from the GitHub API. Check out the link above to learn more or check out the demo!