This section details how to setup a basic development environment.
As you may have guessed, some version of Visual Studio is required in order to work on Crypter.
I recommend using Visual Studio 2022 for Crypter development.
The only workload you need to install is ASP.NET and web development
.
Make sure these individual components are also installed:
.NET 6.0 Runtime
.NET WebAssembly build tools
Docker is required to run the PostgreSQL database. Get Docker setup on your development machine.
Download and install PGAdmin: PGAdmin Downloads Page
Follow the instructions for a production deployment to get the container running on your development machine. Those instructions are located here.
If you would rather not use Docker or Docker-Compose, you are free to setup PostgreSQL on your own. However, you must still refer to the initialization script located here. This script does a few things, including create some databases and a database user. You will not be able to create a database schema without executing this script.
- 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:44357
.
Make sure you navigate to this address in your browser before trying to use the API.
You will need to acknowledge the API's self-signed certificate.
- Review and configure the
.\Crypter.Web\appsettings.json
file. - Open
.\Crypter.Web
in a terminal. - Invoke
dotnet run
.
This will run the web app on https://localhost:5001
.
- Review and configure the
.\Crypter.Console\appsettings.json
file. - Build the project.
- Open
.\Crypter.Console\bin\Debug\net6.0
in a terminal. - Invoke
.\Crypter.Console.exe
. This will run the program and output a help menu.