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
- Host: GitHub
- URL: https://github.com/genocs/genocs-auth
- Owner: Genocs
- License: mit
- Created: 2022-11-12T10:06:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T19:05:34.000Z (over 1 year ago)
- Last Synced: 2025-02-07T10:52:32.590Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 161 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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
```