/christine-for-nh

Christine Seibert's Campaign Website for the New Hampshire State House of Representatives

Primary LanguageJustMIT LicenseMIT

Christine for NH

Christine for NH repository contains the contents and blog for Christine Seibert's Campaign for the New Hampshire State House of Representatives.

On every change to the main branch, the markdown under /docs directory is built and deployed as a Cloudflare page to:

Local changes are applied immediately on save to http://localhost:8000/

Getting started

You will need to have the following software installed on your system to run this project locally:

If you are on Windows, please do the following to install just:

  • Open a Powershell terminal and execute the following:
  winget install --id Casey.Just --exact

If you are on Ubuntu Linux, please do the following to install just:

  • Open a bash terminal and execute the following:
  wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
  echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
  sudo apt update
  sudo apt install just

For other OS's, follow Just Installation Commands

Build

To build the Docker Image execute the following command:

just build

Deploy

To deploy the Docker Container locally, execute the following command:

  1. Execute the following command:
just serve
  1. Open http://localhost:8000/ once you see Serving on http://0.0.0.0:8000/ in the logs

Build and Deploy

To build and deploy the Docker Container locally execute the following command:

just

or

just build serve

The just command defaults to building and serving the project attached to the terminal (CTRL + C will automatically stop the container).

Open http://localhost:8000/ once you see Serving on http://0.0.0.0:8000/ in the docker logs.

Deploy Detached

To deploy the Docker Container detached from the terminal locally, execute the following command:

  1. Execute the following command:
just serve-detached
  1. Open http://localhost:8000/ once you see Serving on http://0.0.0.0:8000/ in the logs

Build and Deploy Detached

To build and deploy the Docker Container locally execute the following command:

just start

or

just build serve-detached

Stop Detached Container

To stop the container when running in detached mode, execute the following command:

just stop

Clean

To stop the container and clean the container and image when running, execute the following command:

just clean

Contributing

Follow the Contributing Guide for instructions on contributing to this project.

Credits