MrWangJustToDo / fullstack-nest-react-ssr-template

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:TypeScript 98.1%Language:JavaScript 1.8%Language:SCSS 0.1%