Skip to content

moreiraio/ABCCompany

Repository files navigation

ABCCompany

Livit Exercise.

Business Requirements

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.

Software Platform

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.

Configuration

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

Installation and Setup

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

Running the application

dotnet ef migrations add v1
dotnet ef database update
dotnet run

About

Vitor Moreira @vitormoreira
[email protected]

https://github.com/vrmmoreira/

About

Livit Exercice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages