Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fullstack SaaS Boilerplate built with tRPC, Fastify and React

License

NotificationsYou must be signed in to change notification settings

alan345/Fullstack-SaaS-Boilerplate

Repository files navigation

image

Fullstack SaaS Boilerplate

Built withFastify,tRPC, andReact.

Project

GitHub starsGitHub forksGitHub licenseGitHub issuesGitHub issues

Demo

Demo Fullstack-SaaS-Boilerplate

Hosted byrender.com for free

As it is a free tier, this Demo will spin down with inactivity, which can delay requests by 50 seconds or more. Be patient!

Preview

Fullstack-SaaS-Boilerplate-Demo

Main Stack

TechnologyDescriptionStars
DrizzleA TypeScript-first ORM for Node.jsGitHub Repo stars
FastifyFast, unopinionated, minimalist web framework for Node.jsGitHub Repo stars
PostgresThe world's most advanced open source databaseGitHub Repo stars
React 19A JavaScript library for building user interfacesGitHub Repo stars
Tailwind v4A utility-first CSS framework for rapid UI developmentGitHub Repo stars
tRPCEnd-to-end typesafe APIs made easyGitHub Repo stars

Other dependencies

TechnologyDescriptionStars
Better AuthAuthentication library for Node.jsGitHub Repo stars
Phosphor IconsBeautifully simple & consistent iconsGitHub Repo stars
npm WorkspaceWorkspaces for managing multiple packages in a single repositoryGitHub Repo stars
PlaywrightTest your web apps headlessly with a single APIGitHub Repo stars
React Router v7Declarative routing for ReactGitHub Repo stars
TypeScriptTypeScript is a typed superset of JavaScriptGitHub Repo stars
ViteNext generation frontend tooling. It's fast!GitHub Repo stars
ZodTypeScript-first schema validation with static type inferenceGitHub Repo stars
ZustandBear necessities for state management in ReactGitHub Repo stars

Star History

Star History Chart

Features

Installation

  • Update the serverserver.envfile and the clientclient.envfile with your credentials
  • Make sure Postgres is running and create a new database calledfsb
psql -U user // replace user by your postgres userCREATE DATABASE fsb;
  • Run in the terminal In the root directory:
// Install the dependenciesnpm i// Setup the databasenpm run push// Seed the databasenpm run seed// Run the app (it will run the client and the server automatically)npm run dev

Building for production

  • Update the.gitignorefile by uncommenting# .env to ensure your credentials remain private and are not exposed.
npm run buildnpm run start

Printscreens

imageimageimageimageimageimageimage

Motivation

Focusing on developer experience: simple, efficient, and fast. This modern stack uses top-tier libraries to build a full-stack web application. Unlike the T3 app (https://create.t3.gg), we opted not to use Next.js, allowing the frontend to remain as static files, easily stored in cloud object storage like AWS S3. Consequently, this stack is designed for building web apps rather than traditional websites, as it is not SEO-friendly.

End-to-end typesafe with Trpc

trpc-video-terVideo fromhttps://trpc.io

E2E Testing

The tests should be executed while the application is running.

Running the tests in the Terminal

npm run test

Other recommendations

  • Need a component library? Check outChakra UI
  • If your stack is getting more and more shared workspaces, consider usingpnpm instead of npm

Who is using TER?

  • Nachonacho.com - The world's largest marketplace for Software & Services

Create a PR if you want to add your project here.

How can you help?

This project is free and open source. If you found it useful, consider giving it a star ⭐ or sponsoring me 💖 — it really helps!I'm always open to feedback, so feel free to share suggestions to improve the stack.You’re also welcome to contribute by opening a pull request 🚀.

GitHub issues

image

[8]ページ先頭

©2009-2025 Movatter.jp