BFF = Backend For Frontend, the API invoked by the HTTP calls in the client HTML page (Website UI).
This project contains the product API, which is used by a small ecommerce client application.
Here is the contract governing the interaction of the client with the product API.
The architecture diagram was created using the amazing free online SVG editor at Vectr.
- .NET core
- Specmatic
- Docker
- Dotnet SDK
- If you are on a Windows OS, please use PowerShell.
- Build the project using :
dotnet build
- Run the application using :
dotnet run
- Using
dotnet test
Ensure Docker Desktop is running on your machine.
To run the .NET application in Docker, execute the following command:
docker run --network host -v "$PWD/specmatic.yaml:/usr/src/app/specmatic.yaml" \
-v "$PWD/build/reports/specmatic:/usr/src/app/build/reports/specmatic" \
znsio/specmatic test --port=8090 --host=host.docker.internal