Giter VIP home page Giter VIP logo

bookstore-withdocker's Introduction

BookStore

Web API Project using .NET Core 3.1 and SPA project using Angular 9

Technologies

  • .NET Core 3.1
  • Entity Framework 3.1
  • Fluent API
  • AutoMapper
  • Swagger
  • SQL Server

Unit tests

  • xUnit
  • Moq
  • SQLite In-Memory database

SPA

  • Angular 9
  • Ng-Bootstrap
  • Ngx-Toastr

Architecture

  • 3 Layers:
    • Application layer (API)
      • Controllers
      • Dtos
    • Domain layer
      • Models
      • Interfaces
      • Services
    • Infrastructure layer
      • Repository Pattern
  • SPA

Articles

On the series of articles, "Creating an Application from Scratch using .NET Core and Angular", there is the explanation step by step about how this code was implemented:

Docker

Portainer

To make the management of the containers, Portainer (https://www.portainer.io/) can be used. Portainer is also a docker image. To Install using these two commands:

docker volume create portainer_data

docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

Accessing Portainer

Portainer can be access on: http://localhost:9000/

The username is admin and the password is admin.

On Portainer, select 'local', and go to 'Containers' menu to see the containers.

Running the application with Docker

To run the containers, access the docker folder (BookStore\docker) in cmd and execute the command:

docker-compose -f bookstore_production.yml up --build

To access the API, go to: http://localhost:5001/swagger/index.html

To connect into the database, open SQL Server Management Studio and in the Server name use 'localhost' and use the same username and password that is in the 'bookstore_production.yml' file (it will take some seconds until the database be created).

bookstore-withdocker's People

Contributors

henriquesd avatar

Watchers

James Cloos 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.