- c#
- Docker
- MOngoDB
- MongoDB For visualstudio
- PostMan
dotnet add package MongoDB.Driver
- For v1
docker run -d --rm --name mongo -p 27017:27017 -v mongodbdata:/data/db mongo
- For v2
docker run -d --rm --name mongo -p 27017:27017 -v mongodbdata:/data/db -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=Pass#word1 mongo
- https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-6.0&tabs=windows
dotnet user-secrets set "MongoDbSettings:Password" "Pass#word1"
- Password: Pass#word1