toonormal / safe-ssr

An example of server-side rendering with the SAFE stack.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SAFE Server-Side Rendering

This is an example project to demonstrate the use of server-side rendering in a SAFE Stack project, using the SAFE Template.

Install pre-requisites

You'll need to install the following pre-requisites in order to build SAFE applications

  • The .NET Core SDK
  • FAKE 5 installed as a global tool
  • The Yarn package manager (you an also use npm but the usage of yarn is encouraged).
  • Node LTS installed for the front end components.
  • If you're running on OSX or Linux, you'll also need to install Mono.

Work with the application

To concurrently run the server and the client components in watch mode use the following command:

fake build -t Run

SAFE Stack Documentation

You will find more documentation about the used F# components at the following places:

If you want to know more about the full Azure Stack and all of it's components (including Azure) visit the official SAFE documentation.

Troubleshooting

  • fake not found - If you fail to execute fake from command line after installing it as a global tool, you might need to add it to your PATH manually: (e.g. export PATH="$HOME/.dotnet/tools:$PATH" on unix) - related GitHub issue

About

An example of server-side rendering with the SAFE stack.


Languages

Language:F# 81.6%Language:JavaScript 18.4%