Skip to content

Sleeping-Bear-Systems/todo-api

Repository files navigation

todo-api

Updating Dependencies

dotnet-outdated -t -td 5

Starting the Development Environment

This creates a local PowerShell session with the environment variables in the .env file and starts the Rider IDE.

./tools/Start-Development.ps1
rider .

⚠️In order to use the correct environment variables, all development tools should be started from the PowerShell command line using the development session.

Exiting the Development Environment

To exit the development environment, close the Rider IDE and run the following command in the PowerShell session.

exit

Running the Web API

./tools/Start-Application.ps1

If starting the application from a development environment session, specify the -UseCurrentEnvironment parameter to use current environment variables.

./tools/Start-Application.ps1 -UseCurrentEnvironment

Managing Databases

Use the DatabaseCli.exe tool to create or drop ToDo WebApi databases.

Create Database

dotnet run --project ./src/DatabaseCli/ -- database create -c "$env:SBS_TEST_SERVER_POSTGRES;Database=<DATABASE>" -f

The -f option will drop the database if it already exists.

Drop a Database

dotnet run --project ./src/DatabaseCli/ -- database drop -c "$env:SBS_TEST_SERVER_POSTGRES;Database=<DATABASE>"

References

1Password inject 1Password run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published