Nkzn / nestjs-react-htm-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nestjs-react-htm-sample

sample: https://nestjs-react-htm-sample.herokuapp.com/

This sample did

Non-build React uses data from server-side AppService.

  • Use Handlebars template engine. (follow this doc)

    • src/main.ts
    • views/index.hbs
  • Non-build React with htm.

    • /public/js/index.js
    • views/index.hbs (script with type="module")
  • SSR with embeded JSON data.

    • src/app.controller.ts
    • views/index.hbs

Installation

$ yarn install

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

About


Languages

Language:TypeScript 68.3%Language:JavaScript 17.7%Language:HTML 14.0%