- Run the command
dotnet dev-certs https --trustin the root directory of the project. For Linux, follow the instructions Here. - Run
docker-compose up -din the root directory of the project to add Redis container and PostgreSQL Database.
The application uses "Secret manager" More info can be found here
cdintoAPIproject 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
sslfolder in the root directory of the "Client" project. - Use https://github.com/FiloSottile/mkcert to generate certificate keys.
- Next,
cdintosslfolder and run the commandmkcert -installand confirm installation, then run the commandmkcert localhost - Restart any opened browsers!
- Create
.envfile in the root directory of the "Client" project. - Fill the required environment variables. (use
.env.exampleto 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.