百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

fullstack-typescript

> 前端框架
开源

FAST FullStack React 使用 TypeScript 启动套件。

382 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

FAST FullStack React 使用 TypeScript 启动套件。

FAST FullStack React with TypeScript starter kit.


Quick Start

If you're using Github, you can click on the "Use this template" button to create a new repository based on this starter kit.

Clean example code

The repo comes with some examples on how to do basic stuff. As this is not really needed in real projects, you can remove them by running:

bash
pnpm clean-up-example-code

Manual clone

clone this repository into your own project folder. and start working

bash
git clone https://github.com/gilamran/fullstack-typescript.git 
cd 
pnpm install
pnpm dev

If you want to detach from this repository into your own repository do this:

bash
git remote remove origin
git remote add origin YOUR_REPO_URL
git push -u origin master

Why

  • Simple to jump into, Fast because it is simple.
  • Separate tsconfig.json for client and server.
  • Client and server can share code (And types). For example: IUserDTO.d.ts
  • The client is bundled using Vite because it goes to the browser.
  • The server is emitted by TypeScript because node now supports es6.

Requirements

  • NodeJs 24.14.+, Chrome 79+ or FireFox 72+

Directory Layout

…

What's included

  • React v19
  • React router v7
  • MUI (Material UI) v9
  • emotion

Usage

  • pnpm dev - Client and server are in watch mode with source maps, opens http://localhost:3000
  • pnpm lint - Runs es-lint
  • pnpm build - dist folder will include all the needed files, both client (Bundle) and server.
  • pnpm start - Just runs node index.js
  • pnpm start:prod - sets NODE_ENV to production and then runs node index.js. (Bypassing vite)

Ports in dev

In dev, port 3000 (the express server) is the single origin for everything: the HTML page, the API, and the client modules. The vite dev server runs on 5173 but stays loopback only — express proxies it under the /vite-dev prefix (including the HMR websocket), so the browser never talks to 5173 directly.

That means the app is reachable from other devices on your network at http://:3000 (as long as your OS firewall allows inbound connections on port 3000).

The prefix is defined in two places that must stay in sync: VITE_DEV_BASE in src/server/config.ts and base in src/client/vite.config.ts.

None of this applies to production, where the client is a static bundle served by express.

Config

All applications require a config mechanism, for example, SLACK_API_TOKEN. Things that you don't want in your git history, you want a different environment to have different value (dev/staging/production). This repo uses the file config.ts to access all your app variables. And a .env file to override variable in dev environment. This file is ignored from git.


What's not included

  • Server side rendering
  • Redux/MobX/Zustand (State management)

License

This code is released as is, under MIT license. Feel free to use it for free for both commercial and private projects. No warranty provided.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptes6fullstackminimalreact

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架