Coder Social home page Coder Social logo

xbfighting / quiz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netcorebcn/quiz

0.0 1.0 0.0 9.29 MB

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

Shell 3.54% Groovy 5.70% JavaScript 24.75% HTML 1.77% CSS 6.53% C# 57.70%

quiz's Introduction

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

    • Create secrets for jenkins, database, docker registry and messagebroker .
    DB_PASS=changeit \
    DB_USER=admin \
    DB_CONNECTION="Username=admin;Password=changeit;Host=db;Port=5432" \
    REGISTRY_PASS=registrypass \
    REGISTRY_USER=registryuser \
    GITHUB_TOKEN=1111111111111111111111 \
    JENKINS_PASS=changeit \
    JENKINS_USER=admin \
    MESSAGE_BROKER="amqp://guest:guest@messagebroker:5672" \
    ./secrets.sh
    • Build, push and deploy jenkins to k8s cluster
    eval $(minikube docker-env) && \
    REGISTRY=myregistry \
    REGISTRY_PASS=$(cat secrets/registry-pass) \
    REGISTRY_USER=$(cat secrets/registry-user) \
    TAG=latest \
    JENKINS_URL=jenkins-url.com \
    GITHUB_REPO=netcorebcn\/quiz \
    GITHUB_ADMINS=mygithubuser \
    ./build-jenkins.sh
    • Add ingress hosts to local host file
    echo $(minikube ip) quiz{,-ci,-rabbit}.io | sudo tee -a /etc/hosts

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

quiz's People

Contributors

dmitry-zaets avatar paulopez78 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.