Philosocode / okane

0 stars 0 forks source link

Okane

Commands

See the Makefiles or more details.

Set up user secrets

dotnet user-secrets init

Set up JWT settings

You can configure the audience, issuer, and expiration time in appsettings.json.

dotnet user-secrets set 'JwtSettings:IssuerSigningKey' 'your-secret-key-here'

Set up EF Core

Create the database user

You'll need to have psql installed.

psql -U postgres postgres

CREATE USER okane WITH ENCRYPTED PASSWORD 'your-secure-password';
ALTER USER okane CREATEDB;
\q

Add DB connection string to user secrets

Okane.Api

dotnet user-secrets set 'DbSettings:ConnectionString' 'Host=localhost;Username=okane;Password=your-secure-password;Database=okane'

Initialize database

dotnet tool install -g dotnet-ef

// If in API project:
dotnet ef database update

// If in solution root:
dotnet ef database update --project ./Okane.Api