Skip to content

ricardodidimo/Auth-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 

Repository files navigation

Auth API

🟣 The project is a study of creating a web service with ASP.NET Core.

How to test it?

The API is published at << updating deploy >>

❗ To interact with protected endpoints such as 'delete' you must authenticate first on 'login' endpoint and generate your json web token. After that click in the 'Authorize' button at page top and write in the dialog window 'bearer {token}' replacing '{token}' by the generated JWT.

Locally

  1. git clone this repo
  2. move to the api folder and execute the command: 'dotnet restore' for dependencies checking
  3. assign values to environment variables at the appsettings.json file
  4. execute command: 'dotnet watch run' to get the api up at 'localhost:5001'
  5. If running the test project dont forget to type in the path and name of the file containing environment variables inside the test class

Technologies and methods used

  • AspNet Core
  • Postgres SQL
  • Entity Framework Core
  • Code First / migrations
  • Input validation with FluentValidation
  • Authentication JWT based
  • Testing with xUnit
  • Client with SwaggerUI
  • Deploy in the Heroku Cloud
  • Git Flow versioning flow