- Run the command
dotnet dev-certs https --trust
in the root directory of the project. For Linux, follow the instructions Here. - Run
docker-compose up -d
in the root directory of the project to add Redis container and PostgreSQL Database.
The application uses "Secret manager" More info can be found here
cd
intoAPI
project and run the following commands to set up the secret keys for this app:dotnet user-secrets set "StripeSettings:SecretKey" "[Value]"
dotnet user-secrets set "StripeSettings:PublishableKey" "[Value]"
dotnet user-secrets set "StripeSettings:WebhookEndpointSecret" "[Value]"
These commands will create a secrets.json
on your local machine that will be used for this app!
And as mentioned in the documentation, that will be stored in:
- For windows -
%APPDATA%\Microsoft\UserSecrets\40b43269-683b-41a0-9485-2385ec3ce3dc\secrets.json
- For Linux/macOs -
~/.microsoft/usersecrets/40b43269-683b-41a0-9485-2385ec3ce3dc/secrets.json
- Create a
ssl
folder in the root directory of the "Client" project. - Use https://github.com/FiloSottile/mkcert to generate certificate keys.
- Next,
cd
intossl
folder and run the commandmkcert -install
and confirm installation, then run the commandmkcert localhost
- Restart any opened browsers!
- Create
.env
file in the root directory of the "Client" project. - Fill the required environment variables. (use
.env.example
to see the variables that the app uses)
In both, API appsettings.json
project and Client environments folder
, there is a "Edit Mode" trigger in the environment variables to control adding and updating shop products, this only for convenience and should use in development only.