.NET currency converter built by Claude Code from a spec

Download the .NET currency converter that Claude Code built. It's a solution created using clean architecture from a spec file.

You can find out more about how we used Claude Code to build a .NET app from a spec, or watch the video:

Download the code example

You'll need to fill out the code example form. We will send you an email where you can download the code example.

Software

This is the software that will need to be installed onto your machine.

Import the database

This application integrates with a SQL Server database. Inside the Database folder, there is RoundTheCode_CurrencyConverter.bacpac and RoundTheCode_CurrencyConverter.bak. Use either of these database backups to import the database to your local SQL Server database server.

The application

Inside Api/appsettings.Development.json, find ConnectionStrings.CurrencyConverterDbContext and point the connection string to your imported database.

Open up RoundTheCode.CurrencyConverter.slnx, and run the application. The Swagger documentation will load at https://localhost:7219/swagger with these endpoints:

  • /api/currencies (GET) - Lists all the currencies that are available

  • /api/currencies/{code} (GET) - Lists all the rates for a given currency. Set code to USD to try it.

  • /api/currency/converter (POST) - Converts an amount from a given currency to the desired currency. Try these values:

    {
    	"fromCurrency": "USD",
    	"toCurrency": "GBP",
    	"fromAmount": 100
    }