This section details how to setup a basic development environment.
I recommend using JetBrains Rider or Visual Studio 2022 for Crypter development.
Tthe only workload you need to install is ASP.NET and web development
.
Make sure these individual components are also installed:
.NET 7.0 Runtime
.NET WebAssembly build tools
I highly recommend installing Docker Desktop, though it is not required.
Refer to the commands below if you decide to run the application using Docker.
docker-compose --profile local up -d --build
You do not need to modify anything in the project for this to work.
Just navigate to https://localhost
.
docker-compose --profile db up
It's expected that you will run Crypter.API and Crypter.Web through Visual Studio or the command line.
Instructions on running these web applications "the old fashioned way" are below.
Download and install PGAdmin: PGAdmin Downloads Page
Follow these instructions to run Crypter.API outside of Docker.
- Review and configure the
.\Crypter.API\appsettings.json
file. - From within Visual Studio, verify you have the
Crypter.sln
solution loaded in the Solution Explorer. This is as opposed to having the Solution Explorer set to Folder View. - Set
Crypter.API
as the startup project in Visual Studio. - Either run the startup project by clicking the green arrow in Visual Studio, or by pressing F5.
This will run the API on https://localhost:5003
.
Make sure you navigate to this address in your browser before trying to use the API.
You may need to acknowledge the API's self-signed certificate.
Follow these instructions to run Crypter.Web outside of Docker.
- Review and configure the
.\Crypter.Web\wwwroot\appsettings.Development.json
file. - Open
.\Crypter.Web
in a terminal. - Invoke
dotnet run
.
This will run the web app on https://localhost:5001
.