Skip to content

Lifewithsun/MetrixConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetrixConverter

  1. Copy project files on your local machine.
  2. Change the connection string of SQL Server in /Src/PublicApi/appsettings.json to your local sql
  3. Ensure your connection strings in appsettings.json point to a local SQL Server instance.
  4. Ensure the tool EF was already installed.
  5. Open Project managar console in your project run folowing command in sequenital manner
dotnet restore
dotnet tool restore
cd src\PublicApi
dotnet ef database update -c matrixdatacontext -p "../Infrastructure/Infrastructure.csproj" -s "PublicApi.csproj"
dotnet ef migrations add InitialModel --context matrixdatacontext -p ../Infrastructure/Infrastructure.csproj -s PublicApi.csproj -o Data/Migrations
  1. Now run the Project.

To check API working provide in input to Swagger API call.

Eg.

  1. convertFrom="Kilometers" ,convertTo="Miles" and inputValue=10
  2. convertFrom="Celsius" ,convertTo="Fahrenheit" and inputValue=39

There are other conversion also been added please refer to database table

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages