Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/persteenolsen/dotnet-8-signup-email-api
A .NET 8 Web API serving as a Membership System with Email Verification using SQLite and EF Core
https://github.com/persteenolsen/dotnet-8-signup-email-api
dotnet entity-framework-core sqlite
Last synced: 29 days ago
JSON representation
A .NET 8 Web API serving as a Membership System with Email Verification using SQLite and EF Core
- Host: GitHub
- URL: https://github.com/persteenolsen/dotnet-8-signup-email-api
- Owner: persteenolsen
- License: mit
- Created: 2024-03-17T13:28:57.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-13T11:01:14.000Z (3 months ago)
- Last Synced: 2024-11-07T09:46:22.459Z (3 months ago)
- Topics: dotnet, entity-framework-core, sqlite
- Language: C#
- Homepage: https://dotnet.signup.email.api.persteenolsen.com/swagger
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-8-signup-verification-api
.NET 8.0.203 - Boilerplate API with Email Sign Up, Verification, Authentication & Forgot Password
# Last updated
- 13-10-2024
The Web API was made without the ASP.NET Core Identity using custom JWT middleware
# Functionality of the Web App
- JWT authentication with refresh tokens
- Refresh token rotation
- Revoked token reuse detection
- Email sign up and verification
- Forgot password and reset password functionality
- Role based authorization with two roles "User" and "Admin"
- CRUD Account management routes with role based access control
- Swagger API documentation with routes# Tech used for creating the Web App
- A .NET 8.0.203 Web API
- An Angular 14 Web Client for the Frontend
- Entity Framework
- SQLite as a local DB
- Swagger for documentation
- A traditional Webhotel for hosting
- VS Code# Updated EF Core tool to the latest version
dotnet tool update --global dotnet-ef
# Development
Create the Initial Migration for SQLite DB - should work for any DB
set ASPNETCORE_ENVIRONMENT=Development
dotnet ef migrations add InitialCreate --context DataContext --output-dir Migrations/SqliteMigrations
# Create the local SQLite DB
dotnet run
# Production
Create a self contained build for production at the remote server / traditionel web hotel
dotnet publish webapi.csproj --configuration Release --runtime win-x86 --self-contained
Upload the build to remote server ( without SQLite DB )
At my remote servers the web.config needs to be without the folowing:
hostingModel="inprocess"
# Create the remote SQLite DB
Now you can create the remote SQLite DB at the remote server by type the url:
remote-host.com/swagger