To run this application in VSCode, you have some dependencies:
-Azure Functions Core Tools development runtime extention in VSCode
-Azure Functions extension for VSCode
-.NET Core SDK on the machine
Environment variables:
mongodbURI: mongodb database connection string
databaseName: database name
userCollectionName: collection name
After this, to run the application in VSCode:
-open the integrated terminal
-move to the root directory containing the application
-execute the command "func start" to run the application
There is an instance of this application deployed in Azure. These are the web-api endpoints:
-https://users23771.azurewebsites.net/api/getuserbyid/{id} (Get)
-https://users23771.azurewebsites.net/api/getallusers (Get)
-https://users23771.azurewebsites.net/api/postusers (Post)
-https://users23771.azurewebsites.net/api/deleteusers (Delete)