erkofer / quiz

Example real time quiz application with .NET Core, React, DDD, Event Sourcing, Docker and built-in infrastructure for CI/CD with jenkins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quiz App

Simple EventSourcing example using .NET Core, React, Docker, Jenkins and K8s.

  • run with docker from bash with .\run.sh

    Open http://localhost for quiz voting

    Open http://localhost?results for quiz results

  • run with minikube

    • Setup namespaces, secrets, jenkins and private registry
    export DB_PASS=changeit
    export DB_USER=admin
    export DB_CONNECTION="Username=admin;Password=changeit;Host=db;Port=5432"
    export MESSAGE_BROKER="host=messagebroker:5672;username=guest;password=guest"
    
    export REGISTRY_PASS=
    export REGISTRY_USER=
    export REGISTRY=localhost:30400
    export TAG=latest
    
    export JENKINS_USER=admin
    export JENKINS_PASS=changeit
    export JENKINS_URL=jenkins-url.com
    
    export GITHUB_REPO=netcorebcn/quiz
    export GITHUB_ADMINS=mygithubuser
    export GITHUB_TOKEN='<github repo token>'
    
    eval $(minikube docker-env)
    ./setup.sh
    • Add ingress hosts to local host file
    echo $(minikube ip) quiz{,-ci,-rabbit,-rabbitstaging,staging}.io | sudo tee -a /etc/hosts

Notes: We aren't starting from the scratch. We are using ideas and code from other awesome repos.

About

Example real time quiz application with .NET Core, React, DDD, Event Sourcing, Docker and built-in infrastructure for CI/CD with jenkins


Languages

Language:C# 58.5%Language:JavaScript 23.3%Language:CSS 6.3%Language:Groovy 5.9%Language:Shell 4.3%Language:HTML 1.7%