marklam / static-web-generator

Simple Fable Node.js app to generate static pages

Home Page:https://fable.io/static-web-generator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static Web Generator

Simple Fable Node.js app to generate static pages.The main advantages of this approach are:

  • Use the same React API that you use on the frontend with Elmish.
  • Use Fable helpers for UI, like Fulma.
  • Access to all npm packages, like marked or highlight.js.

Requirements

On macOS and Linux you'll need Mono to run Paket.

Installing and building

  • Clone this repository
  • Install dependencies:
    • dotnet tool restore
    • dotnet femto --resolve src
  • Build the deploy folder:
    • yarn build
  • Start the live server:
    • yarn start

To start your own website, use this project as scaffold. You can also take advantage of Paket Github dependencies to link src/Helpers from your project and get new additions more easily. For a more comprehensive example check the Fable website.

About

Simple Fable Node.js app to generate static pages

https://fable.io/static-web-generator/

License:MIT License


Languages

Language:F# 100.0%