GithubHelp home page GithubHelp logo

rodrigo11spbr / anbima Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 94 KB

.net core, hexagonal architecture, solid, IOC

C# 95.61% TSQL 1.61% Dockerfile 2.78%
docker solid seq sql-server anbima ioc hexagonal-architecture efcore swagger dotnet-core3-1 unit-of-work-pattern repository-pattern

anbima's Introduction

Anbima Consumer API

CI-CD

Description

  • .Net Core 3.1
  • Swagger
  • Docker
  • Hexagonal Architecture
  • EF Core Sql Server
  • Repository and Unit of Work Pattern
  • SOLID and Inversion of Control

How to Start

Migration

When the project starts, the migration will run and create the necessary table, for this to work it is necessary to have the sql server with the "ANBIMA" database, in appsettings.json can be changed the connection and the name of the bank

Log

Log provider is seq the address is in appsettings.json , if you create an instance in the docker the address by default is the same

Docker

For create a image use docker build -t anbima/api .
For run image use docker run -p 5000:5000 anbima/api

Attention

For the Sql server and Seq to work, it is necessary to inform the ip of both. If they are in a container, enter the command docker inspect -f '{{range .NetworkSettings.Networks}} {{. IP_Address}} {{end}} 'container_name this will show the IP address. After you can change the address in appsettings.json

Request

[GET] http://localhost:5000/api/Anbima?date=yyyy-MM-dd

Used Images

  • Sql Server: docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Development_Password' -e 'MSSQL_PID=Express' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest-ubuntu
  • Seq: docker run --name seq -d --restart unless-stopped -e ACCEPT_EULA=Y -p 5341:80 datalust/seq:latest

anbima's People

Contributors

rodrigo11spbr avatar

Stargazers

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