dotnetcore

swagger

add package:
NSwag.AspNetCore

startup.cs

public void ConfigureServices(IServiceCollection services)
{
    services.AddControllers();
    services.AddOpenApiDocument();
}

Configure(IApplicationBuilder app, IWebHostEnvironment env)
...(after endpoints)...
app.UseOpenApi();
app.UseSwaggerUi3();

goto url localhost:5000/swagger

Dotnet core links

Dotnet Identity & mySQL

working identity with pomelo in dotnet 2.1

Nice article dotnet core 2 with link sql creation file

identity proj

implementing Identity storage provider

UPDATE mysql.user SET Password=PASSWORD('root') WHERE User='root'; 

or

 ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
docker exec -i mysql-server mysql -uroot -p"root" mysql < orkestpit.sql

with homebew:

brew tap homebrew/services
brew services list
brew install mysql@5.7
brew services start mysql
mysql_secure_installation

echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
mysql -V
Subscribe to RSS - dotnetcore