A Blazor app to play correspondence Chinese Chess. The frontend is built using the amazing MudBlazor framework.
Login your PostgreSQL server (psql postgres
) and create the database and user:
CREATE DATABASE xi;
CREATE USER xi_usr WITH PASSWORD 's3cr3t';
GRANT ALL PRIVILEGES ON DATABASE xi TO xi_usr;
From ./src/Xi.Database
, run:
dotnet ef --startup-project ../Xi.BlazorApp Migrations add MigrationName
Initialize the secrets:
dotnet user-secrets init
And add (at least) the Google secret and ID:
dotnet user-secrets set "Google:ClientId" "YOUR_CLIENT_ID"
dotnet user-secrets set "Google:ClientSecret" "YOUR_CLIENT_SECRET"
dotnet user-secrets set "XiConfig:MailjetApiKey" "YOUR_API_KEY"
dotnet user-secrets set "XiConfig:MailjetApiSecret" "YOUR_API_SECRET"
The Mailjet API key- and secret are optional.