Bingo!
NOTE -
***** The design used in this "service" is really only good for CRUD applications with very little complexity or business logic. *
***** This is meant to be a basic implemenation guide for Mongo, unit testing, integration testing, etc..
Bingo is a RESTful (not really though) API that provides data about fitness.. and fitness related.. stuff...
The following things can be done in any order!
Deploy MongoDB locally by running the following command in powershell:
From \Bingo_csharp-aspnetcore-mongodb\database >> `start-process start_db.bat`
Mongo will be hosted locally over port `27017` with a connection string of `mongodb//localhost:27017`
You may consider downloading a free MongoDB client from [RoboMongo](https://robomongo.org/)
There are 2 ways to deploy the API:
1. Deploy from visual studio under the *debug* menu.
1. Deploy from command-line using dotnet core build tools
From the directory .\Bingo_csharp-aspnetcore-mongodb\src\Bingo.Api >> `dotnet run`
**Mongo does not need to be deployed for this to work. Neither does ASP.NET. Pretty much nothing does.**
1. Run them in Visual Studio!
1. If you do not have VS, run tests from command-line with the following:
From the root of the project >> `dotnet test`
Framework dependencies such as mongoDb and ASP.NET core are initialized in-memory or managed entirely by the test harness, for the lifetime of the test execution. No setup required. -- CORRECTION - This implementation is not actually deploying Mongo in-memory, but instead the test harness is just managing the mongo binaries.. .. ..