Livit Exercise.
Develop an API back-end using ASP.NET Core, which can:
1. Allow the users to login with their Google email.
2. Add an absence request to the system.
3. Admin can approve or decline the request.
4. Approved requests are shared automatically in the user’s calendar.
For platform as requested it was used ASP.NET Core, the latest version can be download from the following link: https://www.microsoft.com/net/download/core#/current
asp.core
version": "1.1.0
and for data storage the default used is sql lite.
On the appsettings.json file the folowing settings need to be configured:
"AdminUser": "" -> the gmail email for the adminuser
"ClientId": "" -> google api clientid
"ClientSecret": "" -> google api client secret
"GroupId": "" -> the gmail group that contains the emails of the admins
After getting the source code open an command line on the source folder and run the following commands:
setup the database and create the model
dotnet ef migrations add v1
dotnet ef database update
to run the application just
dotnet run
dotnet ef migrations add v1
dotnet ef database update
dotnet run
Vitor Moreira @vitormoreira
[email protected]