Create System Management Book with C# & MONGODB
Create ATLAS Account and install MONGODB (link attached) : https://www.mongodb.com/cloud/atlas/register OR Install locally with Compass : https://www.mongodb.com/products/tools/compass (the following steps will use Compass )
Add in appsettings.json : -> Name of the database to create -> the name of the collections -> the url to connect to the database ConnectionURI (in local we use : "mongodb://localhost:27017")
Install the driver MONGO DB for c# .NET App and Add the following lines to Programm.cs
builder.Services.Configure<MongoDBSettings>(builder.Configuration.GetSection("MongoDBSettings"));
var serverAccess = builder.Configuration.GetSection("MongoDBSettings:ConnectionURI").Value;
builder.Services.AddSingleton<IMongoClient>(new MongoClient(serverAccess));