Projects basically supports user registration, login with JWT authentication and user CRUD operations.
This API is configured to use a local SQLite database in development and a SQL Server database in production. It uses Entity Framework Core migrations to automatically generate the database on startup, for more info on EF Core migrations see Micrososft Docs - EF Migrations.
Migrations Commands are in ~\Migrations\Commands.md
The architecture of project combined of
- Authorization
- Helpers
- Controllers
- Services
Project is created with:
- .Net version: @5.0
- AutoMapper version: @10.1.1
- BCrypt.Net-Next version: @4.0.2
- Microsoft.EntityFrameworkCore version: @5.0.6
- Microsoft.EntityFrameworkCore.Sqlite version: @5.0.6
- Microsoft.AspNetCore.Authentication.JwtBearer version: @5.0.6
- System.IdentityModel.Tokens.Jwt version: @6.11.0
To run this project:
$ cd ../net-5-simple-api-auth-reg-man
$ dotnet restore
$ dotnet run
Or build and run in Docker
$ docker build --pull --rm -f "Dockerfile" -t webapi-net-5-simple-api:latest "."
$ docker run --rm -d -p 4000:4000/tcp webapi-net-5-simple-api:latest
- Github : slymnGms
- LinkedIn: Suleyman GUMUS
- E-mail: suleyman.gumus@outlook.com.tr