netcorebcn / quiz翻译 / 编辑

最近提交:2月前
创建时间:2017.02.22

语言构成

C#58.5%
JavaScript23.3%
CSS6.3%
Groovy5.9%
Shell4.3%

README

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.

讨论区

说说你的看法