Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 965 Bytes

File metadata and controls

46 lines (31 loc) · 965 Bytes

fullstack react ssr template

all write by typescript

a new version of template has coming, for now, the project have backendfrontendpackages three part of directories.

  1. backend, a pure NestJS app, you can write all the backend code on this directory
  2. frontend, a ssr template which from react-ssr-template
  3. packages, a directory can put all of the shared module

use

  1. install
pnpm install
  1. prepare
pnpm run build:packages
  1. for dev
pnpm run dev:backend;
pnpm run dev:frontend;
  1. for build
pnpm run build:backend
pnpm run build:frontend / pnpm run build:frontend_static
  1. for prod
pnpm run start:frontend

you can visit the .env file, ssr is support by default, or you can just use csr by set en variable.

more about this project, you can see the source code of just ask me for help ^_^ !