An open API service indexing awesome lists of open source software.

https://github.com/genocs/genocs-auth

NET9 authentication Web API based on EF7
https://github.com/genocs/genocs-auth

Last synced: over 1 year ago
JSON representation

NET9 authentication Web API based on EF7

Awesome Lists containing this project

README

          

# dotnet-9-signup-verification-api

.NET 9.0 - Boilerplate API with Email Sign Up, Verification, Authentication & Forgot Password

Documentation at https://jasonwatmore.com/post/2022/02/26/net-6-boilerplate-api-tutorial-with-email-sign-up-verification-authentication-forgot-password

Documentación en español en https://jasonwatmore.es/post/2022/02/26/net-6-tutorial-de-api-estandar-con-registro-de-correo-electronico-verificacion-autenticacion-y-contrasena-olvidada

### Install dotnet ef tools
The .NET Entity Framework Core tools (dotnet ef) are used to generate EF Core migrations, to install the EF Core tools globally run

```PS
dotnet tool install -g dotnet-ef
```
, or to update run

```PS
dotnet tool update -g dotnet-ef
```

```PS
# Create the initial migration for the DataSqlServer project
cd .\src\DataSqlServer
dotnet ef migrations add InitialCreate

# Update the database with the initial migration
dotnet ef database update

# Create the initial migration for the DataSqLite project
cd .\src\DataSqLite
dotnet ef migrations add InitialCreate

# Update the database with the initial migration
dotnet ef database update
```

## How to use docker
```PS
# Build the docker image
docker build -t genocs-auth-api .

# Run the docker container
docker run -d -p 80:8080 genocs-auth-api
```