davecarlson / flusshygiene

WIP Monorepo for the project Flusshygiene and all the modules that are actually used

Home Page:https://badestellen.berlin.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flusshygiene

This is the the source for the web application of the project Flusshygiene.

CI Status

Docker Image Builder Workflow badge FHPREDICT Test Workflow badge MIDDLELAYER Test Workflow badge NGINX Test Workflow badge OPENCPU BASE Test Workflow badge POSTGRES API Test Workflow badge CMS SPA Test Workflow badge Coverage Status

Prerequisites

  • auth0.com account
    • api configured
    • extension configured to api
  • aws account
    • aws credentials
    • eb cli installed
    • aws cli?
  • docker account
    • docker installed
  • terraform installed
  • serverless installed
  • blackbox installed (optional)

blackbox

encrypt decrypt secrets

auth0.com

  • add domain(s) from aws to allowed domains in api

AWS

Docker

Folder terraform

Setup Terraform

  • install terraform
  • aws credentials
  • fill in variables

Deploy With Terraform

Order of deployment:

  1. s3-pgapi-uploads
  2. s3-radolan-recent
  3. rds
  4. elastic-cache
  5. ecs-radolan-recent
  6. cloud-watch
  7. elastic-beanstalk
  8. ecs-fargate-cronbot

after cd elastic-beanstalk && terraform apply you will have to create a ssh key, download it, chmod 600 it and store it in ~/.ssh for usage with the eb cli and for provisioning the DB

Setup Postgres/Postgis RDS Database

  • create key for ec2 instance
cd terraform/ec2-worker-with-nodejs
terraform init
terraform plan
terraform apply
ssh -i path/to/your/YOUR.pem   ubuntu@SOME.DOMAIN.eu-central-1.compute.amazonaws.com
# on the remote worker
# you can use tmux to attach/detach a session
# https://en.wikipedia.org/wiki/Tmux
cd pgapi
npm run build && NODE_DOCKER_ENV=0 NODE_ENV=production FAST=true npm run populatedb

Folder packages

  • lerna

Folder elastic-beanstalk-deply

Setup EB

  • Install eb-cli
  • setup your env
    • credentials?
    • eb init --profile flsshygn
    • eb status to see what is going on
    • eb use {ENV}
    • eb ssh --setup to create ssh keys for your ec2 instances

Deploy EB

  • deploy eb deploy --profile flsshygn

Contributors

Thanks goes to these wonderful people (emoji key):


Fabian Morón Zirfas

💻 📖

Hauke Sonnenberg

💻

Lucas Vogel

📖

wseis

🔣 👀 🎨

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

Partners network

Developed in the project

Supported by

About

WIP Monorepo for the project Flusshygiene and all the modules that are actually used

https://badestellen.berlin.de

License:MIT License


Languages

Language:TypeScript 87.0%Language:HCL 5.2%Language:JavaScript 1.9%Language:SCSS 1.6%Language:Shell 1.6%Language:R 1.4%Language:Dockerfile 0.7%Language:HTML 0.3%Language:PLpgSQL 0.2%Language:Handlebars 0.2%Language:Vim Script 0.0%