Skip to content
K Adam White edited this page May 24, 2022 · 4 revisions

Welcome to the H2 wiki!

Developing H2

H2 is easiest to work with on a local Altis site. Follow these steps in your terminal to create a new Altis site using the composer skeleton and Altis Local Server, then install H2 and required dependencies into the correct locations:

#!/usr/bin/env bash

# Start in your Altis project root directory.

# Clone H2
git clone git@github.com:humanmade/h2 content/themes/h2

# H2 network plugin is a hard dependency.
git clone git@github.com:humanmade/h2-network.git content/plugins/h2-network

# These make H2 work the way it does on prod.
# Note: global-facts errors unless a FACTS_API_KEY constant is set,
# and user hovercards depends on a MAPBOX_KEY global.
git clone git@github.com:humanmade/global-facts.git content/plugins/global-facts
git clone git@github.com:humanmade/falcon.git content/plugins/falcon-notifications
git clone git@github.com:humanmade/time-shortcode.git content/plugins/time-shortcode
git clone git@github.com:humanmade/h2-emoji-reactions.git content/plugins/h2-reactions

# Other relevant plugins and integrations.
composer server cli -- plugin install todo-list-block

If you are a Human Made employee, you should be able to download this database backup which you can then import into your local. This DB expects your local network is running at h2.altis.dev, and includes a partial local copy of the Updates and Dev H2s.

Clone this wiki locally