/apprun-ssr

AppRun server-side rendering example

Primary LanguageTypeScript

AppRun - Server Side Rendering

AppRun is isomorphic/universal. AppRun components can render on the client-side, as well as on the server-side using the AppRun server-side view engine.

In this SSR AppRun application example, there are:

  • The express.js server application (server.ts),
  • The site layout (components/layout.tsx),
  • The AppRun components (components/*.tsx)
  • The client-side application (/public/spa.js).

You can run the application on @glitch, https://apprun-ssr.glitch.me

To develop and build the application

  • Use npm start to start the server
  • Use npm run build to build for production

Have fun.

(C) Copyright, Yiyi Sun