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)
Install Bun 1.3+, clone the repo, and run bun install.
- Run
bun run migrateto apply database migrations, thenbun run devto start the development server at http://localhost:3030. - Create a TypeScript migration with
bun run migrate:make migration_name. - Make epic shit.
- Run
bun run build(orbun run compile) to build the server, browser hydration, CSS, and client declarations intolib/. - Run
bun run startto start the compiled server in production mode. Deploylib/,config/, and runtime dependencies together. - Run
bun run bundle:clientto build and package the typed Feathers client intopublic/.
- Remove
lib/to clean the build output. Each build also clears it automatically.
- 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.
If you find this template helpful, consider paying it forward and/or pet a cat. They're often more appreciative than users. 🐱