Skip to content

API member of a microservices family for a tournament management application

Notifications You must be signed in to change notification settings

UNTorneo/tournaments-microservice-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tournaments-microservice-dotnet

API member of a microservices family for a tournament management application

Setting environment variables

setx ASPNETCORE_TournamentsMongoDB__ConnectionURI "mongodb+srv://danielfgalindoc:Mongocluster123*@cluster0.a1etllb.mongodb.net/?retryWrites=true&w=majority" /M

setx ASPNETCORE_TeamsMongoDB__ConnectionURI "mongodb+srv://danielfgalindoc:Mongocluster123*@cluster0.a1etllb.mongodb.net/?retryWrites=true&w=majority" /M

setx ASPNETCORE_MatchesMongoDB__ConnectionURI "mongodb+srv://danielfgalindoc:Mongocluster123*@cluster0.a1etllb.mongodb.net/?retryWrites=true&w=majority" /M

Building image cd .. docker build -f .\TournamentWebService\Dockerfile --force-rm -t tournamentcoreapp .

Running container docker run -d -p 443:443 --name TournamentWebApp tournamentcoreapp

Setting db connectionStrings in user-secrets (In case env variables doesn't work)

dotnet user-secrets set "TournamentsMongoDB:ConnectionURI" "mongodb+srv://danielfgalindoc:Mongocluster123*@cluster0.a1etllb.mongodb.net/?retryWrites=true&w=majority"

dotnet user-secrets set "TeamsMongoDB:ConnectionURI" "mongodb+srv://danielfgalindoc:Mongocluster123*@cluster0.a1etllb.mongodb.net/?retryWrites=true&w=majority"

dotnet user-secrets set "MatchesMongoDB:ConnectionURI" "mongodb+srv://danielfgalindoc:Mongocluster123*@cluster0.a1etllb.mongodb.net/?retryWrites=true&w=majority"

About

API member of a microservices family for a tournament management application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published