Git Product home page Git Product logo

solid-app's Introduction

Intro

DeepScan grade

Solid template built with:

  • vite + typescript + eslint + prettier -> dev productivity
  • @solid-primitives -> common primitives (similar to custom hooks or react-use in React)
  • @solidjs/router -> routing
  • vitest + @solidjs/testing-library -> unit test, integration test, coverage
  • msw -> browser and server mocking
  • tailwindcss + tailwindcss-animate + tailwind-merge + daisyui -> styling
  • @formkit/auto-animate -> automate transition animation when component mount/unmount
  • @kobalte/core -> unstyled UI component library (similar to radix-ui in React)
  • axios + @tanstack/solid-query -> data fetching
  • zod -> schema validation
  • @felte/solid -> form management
  • @iconify-icon/solid -> icon on demand (based on web-component)
  • type-fest -> useful type helpers

Development

# install deps
$ pnpm install

# init msw for browser mocking
$ pnpm msw:init

# Runs the app
$ pnpm start
# run test
$ pnpm test

# coverage with instanbul
$ pnpm test:coverage

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!

# build app
$ pnpm build

Deployment

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

Notes

Todos:

  • fix all tests
  • add /docs folder, including all my decisions why or technical considerations.
  • use router routes configuration object, instead of Routes. Currently v0.8.2 not possible. Currently, using router configuration object OR separate the routes in a component breaks the app. Uncaught Error: Make sure your app is wrapped in a <Router />
  • integrate solid-devtools. Currently v0.27.3 not possible. Using "type": "module" in package.json breaks the app. Importing import 'solid-devtools' in index.tsx also breaks the app.
  • solidjs inside react. Currently reactjs-solidjs-bridge library exists, but the DX is so horrible. If we want to run both libraries side-by-side, we need to have separate Vite configs for React and Solid JSX. While both are JSX, they require different pragmas.

solid-app's People

Contributors

rifandani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

foreverfirst

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.