Giter Club home page Giter Club logo

joaovictorino / microservices-election Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 554 KB

A simple election application for educational purposes, using microservices architecture and Azure. Each branch has a version of the application, demonstrating cloud concepts and evolutive approach.

Dockerfile 7.27% C# 87.28% Shell 5.45%
docker docker-compose microservices api-management app-services azure-container-apps azure-container-instances azure-functions azure-kubernetes-service cosmosdb

microservices-election's Introduction

How to execute the election API sample

Prerequisites

  • Docker
  • Docker Compose
  • .Net 6 SDK

Architecture

alt architecture

First of all, run MongoDB and SQL Server inside docker-compose with the following command:

docker-compose up

After all databases is running, initiate new terminal, go to the folder CandidatesAPI, and then execute:

dotnet run

If command fails because of server certification, execute dotnet dev-certs https --trust

When CandidatesAPI is running, access https://localhost:7003/swagger/index.html and test CandidateAPI inside Swagger.

After everything is ok, go to VotesAPI folder and execute the sequence of commands bellow:

dotnet tool install -g dotnet-ef
export PATH="$PATH:/home/vscode/.dotnet/tools"
dotnet ef database update

After executed, SQL Server table will be created, and then execute dotnet run. Access https://localhost:7193/swagger/index.html and test, trying to vote.
There is others branchs inside this repository with more advanced examples of microservices using the election study case.

microservices-election's People

Contributors

joaovictorino avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.