This repository holds the code for the website Sprout9.nl.
Send an email to info@sprout9.nl for any questions.
- Sprout9 Forms App (see Live)
- Terraform code
- Ansible code
- Nginx configuration
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
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
Update by pushing to main branch.
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*.*
.
Any commit with changes to ./nginx
will update the container image in DockerHub with tag nginx-latest
.
The forms app workflow will always run to check if the latest container image is running and update accordingly.
git tag -d v0.1.0
git push -d origin v0.1.0
git tag v0.1.0
git push origin --tags