Prerequisites
The function from the previous activity.
Aim
Create a serverless backend and frontend for user management.
Scenario
Allowing your application to be used by multiple users, rather than just you.
Steps for Completion
- Create a collection in the Cosmos DB to store your users. Alter your function so that it writes users to this collection.
- Add a function to retrieve all of your users.
- Add a screen to see all of the users of your application, and to create new users.
Outcome
Screen to store and manage users of the application.
Refer to the complete code placed at Code/Serverless-Architectureswith-Azure/Lesson3/
BeginningAzureServerlessArchitecture/Models/.
Before the transactions have taken place:
User.cs: https://goo.gl/1C9PNt to access the code.
GetUsers.cs: https://goo.gl/oRH2WM to access the code.
After the transactions have taken place:
PostUsers.cs: https://goo.gl/JTh2Fc to access the code.
BeginningAzureServerlessArchitecture/Models/.
Before the transactions have taken place:
User.cs: https://goo.gl/1C9PNt to access the code.
GetUsers.cs: https://goo.gl/oRH2WM to access the code.
After the transactions have taken place:
PostUsers.cs: https://goo.gl/JTh2Fc to access the code.