HTML C# CSS JavaScript Batchfile
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
.vscode vscode settings May 30, 2017
docs hugo --destination ../../docs May 31, 2017
src responsive May 31, 2017
.deployment deployment hooks May 30, 2017
README.md README May 30, 2017
deploy.cmd deployment hooks May 30, 2017

README.md

JAMstack

This is an experiment where I'm trying to build a JAMstack site.

Modern web development architecture based on client-side JavaScript, reusable APIs, and prebuilt Markup.

The ingredients are:

The source code for the Hugo site:

The source code for the Azure Functions:

The generated static HTML:

The site is hosted by GitHub Pages at:

Run

To run the site locally, edit /src/site/data/api.toml:

[recipe]
get_ingredients = "http://localhost:7071/api/Ingredients/"

[submit]
post_recipe = "http://localhost:7071/api/Recipe"

Run the Hugo site:

cd src/site

hugo server

Run the Azure Functions:

cd src/api

func host start --cors http://localhost:1313

Browse:

http://localhost:1313/jamstack/

Build

Build the Hugo site:

cd src/site

hugo --destination ../../docs

Attributions

The jam recipes was taken from the Swedish site Tasteline.com:

Translations from Swedish to English was done with Google Translate.

The images was taken from Flickr: