Skip to content

gabmartinez/chucherias

Repository files navigation

Chucherias

e-commerce website using asp.net core

Initial Migration

dotnet ef migrations add InitialCreate
dotnet ef database update

Create migrations for updates

dotnet ef migrations add [MigrationName]
dotnet ef database update

Add new update to database

dotnet ef database update

Docker MS SQL SERVER

docker pull microsoft/mssql-server-linux
docker run --name mssql-server -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<Password>' -e 'MSSQL_PID=Express' -p 127.0.0.1:1433:1433 -d microsoft/mssql-server-linux:latest

Run as development environment

export ASPNETCORE_ENVIRONMENT=Development && dotnet run

Facebook configurations

dotnet user-secrets set Authentication:Facebook:AppId <AppId>
dotnet user-secrets set Authentication:Facebook:AppSecret <AppSecret>