GithubHelp home page GithubHelp logo

myerden / contactapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 82 KB

This project is a Contact Application developed in .NET 5 with microservice architecture.

License: MIT License

Dockerfile 3.29% C# 96.71%
docker rabbitmq microservices

contactapp's Introduction

ContactApp

This project is a Contact Application developed in .NET 5 with microservice architecture.

Overview

This project includes following features

Contact Microservice

Responsible for basic CRUD implementations over Contact Entity.

This service includes:

  • .NET 5 Web Api implementation
  • REST API Principles, CRUD operations
  • PostgreSQL as Database Provider
  • Repository Pattern implementation
  • Containerization

Report Microservice

Responsible for generating reports for Contacts.

This service includes:

  • .NET 5 Web Api implementation
  • REST API Principles, CRUD operations
  • PostgreSQL as Database Provider
  • Repository Pattern implementation
  • Containerization
  • RabbitMQ Message Broker Service
  • HTTP Rest communication between Contact Service
  • EPPlus for generationg Excel reports

Gateway Microservice

Responsible for communication with microservices.

This service includes:

  • Ocelot is used for Gateway implementation
  • Containerization

Run The Project

You will need the following tools:

Installing

Follow these steps to get your development environment set up: (Before Run Start the Docker Desktop)

  1. Clone the repository
  2. (Optional) If you want, you can limit the Wsl2's memory and cpu usage. (see also)
  • Go to User's Document Folder ( Press "WinKey + R" and run "%UserProfile%" )
  • Create a file named .wslconfig
  • Write its content as follows (Windows restart may be required)
[wsl2]
memory=8GB
processors=2
swap=0
localhostForwarding=true
  1. At the root directory which include docker-compose.yml and docker-compose.override.yml files, run below command:
docker-compose -f docker-compose.yml -f docker-compose.override.yml up
  1. Wait for docker compose all microservices.

  2. You can launch microservices as below urls:

If you want to use the API with Postman, click below link.

Run in Postman

Testing

To run unit tests, you have to run microservices with test environment. We will also use Docker for unit tests.

  1. At the root directory which include docker-compose-tests.yml and docker-compose-tests.override.yml files, run below command:
docker-compose  -f docker-compose-tests.yml -f docker-compose-tests.override.yml up
  1. Wait for docker compose all microservices.
  2. From the Test menu item, run the all tests.

image

  1. Open the Test Explorer window, and notice the results of the tests.

image

contactapp's People

Contributors

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