a new version of template has coming, for now, the project have backend
、frontend
、packages
three part of directories.
backend
, a pureNestJS
app, you can write all thebackend
code on this directoryfrontend
, a ssr template which fromreact-ssr-template
packages
, a directory can put all of the shared module
- install
pnpm install
- prepare
pnpm run build:packages
- for dev
pnpm run dev:backend;
pnpm run dev:frontend;
- for build
pnpm run build:backend
pnpm run build:frontend / pnpm run build:frontend_static
- 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 ^_^ !