Skip to content
Public template

About

SolidJS + FeathersJS

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

About

This is the template I use when I need the fine grained reactivity of SolidJS and the real-time capabilities of FeathersJS. I refer to the powerful duo (plus TypeScript) as the SoFT stack.

This template was created with the default options from npm create feathers@latest SoFT (Except uses Express rather than Koa), it originally adapted SolidJS-SSR-Vite to integrate SolidJS streaming SSR and Vite HMR, it's now substantially deviated. As this is primarily a template for my own use, it has TailwindCSS added in.

Find an example chat app using this template here. (Outdated)

Setup

Install Bun 1.3+, clone the repo, and run bun install.

Usage

Development

  • Run bun run migrate to apply database migrations, then bun run dev to start the development server at http://localhost:3030.
  • Create a TypeScript migration with bun run migrate:make migration_name.
  • Make epic shit.

Production

  • Run bun run build (or bun run compile) to build the server, browser hydration, CSS, and client declarations into lib/.
  • Run bun run start to start the compiled server in production mode. Deploy lib/, config/, and runtime dependencies together.
  • Run bun run bundle:client to build and package the typed Feathers client into public/.

Clean up

  • Remove lib/ to clean the build output. Each build also clears it automatically.

Notes

  • Vite powers development and HMR. Bun compiles Solid JSX for the production browser and server bundles. TypeScript checks source files and emits declarations.
  • Server dependencies, including Knex and its Bun-native SQLite driver, remain external to the build.
  • Migrations load database configuration directly, without starting Vite or application services.

Supporting

If you find this template helpful, consider paying it forward and/or pet a cat. They're often more appreciative than users. 🐱

About

SolidJS + FeathersJS

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages

⌂ Proxy