Skip to content

A fullstack ssr template, write all of the fullstack code in one project(NestJS + React)

License

Notifications You must be signed in to change notification settings

MrWangJustToDo/fullstack-nest-react-ssr-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2159539 · Sep 15, 2023

History

20 Commits
Sep 10, 2023
Sep 15, 2023
Jul 2, 2023
Jul 2, 2023
Jul 2, 2023
Jul 2, 2023
Sep 22, 2022
Sep 22, 2022
Jul 12, 2022
Jul 2, 2023
Jul 2, 2023
Sep 10, 2023
Sep 10, 2023
Jul 2, 2023
Jul 2, 2023

Repository files navigation

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 ^_^ !