Skip to content
View Sprout9's full-sized avatar

Block or report Sprout9

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Sprout9/README.md

Sprout 9 Public Repository

This repository holds the code for the website Sprout9.nl.

Send an email to info@sprout9.nl for any questions.

Contents

  • Sprout9 Forms App (see Live)
  • Terraform code
  • Ansible code
  • Nginx configuration

Quickstart

Please ensure docker is running. To run forms locally:

# run mongodb locally in docker:
docker run -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=... -e MONGO_INITDB_ROOT_PASSWORD=... mongodb -d
git clone https://github.com/Sprout9/sprout9.git
cd forms
cp .env.example .env
# fill in .env
npm run dev

then visit http://localhost:3000

Updating

These are the different updating workflows

  • .github/workflows/infrastructure.yaml

    Updates AWS resources

  • .github/workflows/nginx.yaml

    Updates Nginx container image

  • .github/workflows/forms-deployment.yaml

    Updates Forms App container image and deploys apps

Terraform, Ansible

Update by pushing to main branch.

Forms App

To update, push a new git tag to github. This will start the forms app update workflow (workflow-tags).

git tag -a v*.*.* -m "tag label"
git push --tags

A commit with tag v*.*.* will update the container image in DockerHub with tags latest, v*.*.* and v*.*.

Update nginx app container image

Any commit with changes to ./nginx will update the container image in DockerHub with tag nginx-latest.

Deploying

The forms app workflow will always run to check if the latest container image is running and update accordingly.

Replace tags

git tag -d v0.1.0
git push -d origin v0.1.0
git tag v0.1.0
git push origin --tags

Popular repositories Loading

  1. sprout9 sprout9 Public

    TypeScript