# Patterns on Infusion

https://heydon.github.io/infusion/patterns/ Recent content in Patterns on Infusion Hugo -- gohugo.io en-us

# Installation

https://heydon.github.io/infusion/patterns/installation/ Mon, 01 Jan 0001 00:00:00 +0000

https://heydon.github.io/infusion/patterns/installation/
Infusion is built using the static site engine, Hugo, and NPM. The codebase is available to download on Github. Let&rsquo;s get set up step-by-step. 1. Install Hugo First we need to install Hugo globally. OSX users If you are a Mac user and have Homebrew on your system, installing Hugo is simple: brew install hugo Alternatively, you can manually install Hugo from a package. You can verify the installation was successful by typing:

# Library setup

https://heydon.github.io/infusion/patterns/library-setup/ Mon, 01 Jan 0001 00:00:00 +0000

https://heydon.github.io/infusion/patterns/library-setup/
By now, you should have followed the Installation instructions. You should have Hugo and Node installed, and a local copy of a forked version of Infusion. You should also have run npm install in the root of that codebase. &ldquo;Cleaning&rdquo; the content folder Before you can start documenting patterns, there are a few things still to do in order to get set up. At the moment, your version of Infusion is a facsimile of the original, containing all this documentation content.

# Serving

https://heydon.github.io/infusion/patterns/serving/ Mon, 01 Jan 0001 00:00:00 +0000

https://heydon.github.io/infusion/patterns/serving/
Serving locally While you&rsquo;re creating content for your library, you&rsquo;ll probably want to see what the finished product looks like. Fortunately, Infusion is easy to serve locally using the serve command: npm run serve This will serve your working library from localhost:1313 (the exact URL will be determined by what&rsquo;s in your baseURL and will be revealed to you by your terminal). Whenever you make changes to your library&rsquo;s files, the site will automatically rebuild.