Skip to content

Sample REST API built with ASP.NET Core 3.0, MongoDB, Swagger, Docker, and Docker Compose.

License

Notifications You must be signed in to change notification settings

jboliveira/Sample_NET3-MongoDb-Docker

Repository files navigation

[PoC] ASP.NET Core WebAPI 3.0 with MongoDB

Actions Status GitHub repo size GitHub last commit

Tech Stack

  • Visual Studio 2019 (Mac/Win)
  • .NET Core v3.0.0 [3.0.100]
  • MongoDB
  • Docker

Installing and Running via Docker Compose

    #Clone Git Repository
    git clone git@github.com:jboliveira/AspNetCore3.0_MongoDb.git

    #Access Project Root Folder
    cd AspNetCore3.0_MongoDb
    
    #Build and Run
    docker-compose -f docker-compose.yml up --build

    #Access through address:
    https://localhost:5000/swagger

Installing and Running via .NET CLI

Important: Install and run MongoDB. For more information, click here.

    #Clone Git Repository
    git clone git@github.com:jboliveira/AspNetCore3.0_MongoDb.git

    #Access Project Root Folder
    cd AspNetCore3.0_MongoDb/src/SampleApi
    
    #Build and Run
    dotnet restore
    dotnet build
    dotnet run

    #Access through address:
    https://localhost:5000/swagger

About

Sample REST API built with ASP.NET Core 3.0, MongoDB, Swagger, Docker, and Docker Compose.

Topics

Resources

License

Stars

Watchers

Forks