To Run the project:
- You need .Net SDK 3.1
- You can run it on Visual Studio 2022, vscode, or from the cmd using .Net CLI
- Make sure that the API project is set as the startup project
- Press Ctrl+F5 (visual studio) or
- From the command line, run:
dotnet restoredotnet build --no-restoredotnet run --no-build MAERSK.ServiceDelivery.CodeChallenge.APIs.dll,--no-restoreis called implicitly- Note: you can directly run
dotnet run ..., it will implicitly restore and build the project
- From the command line, run:
This is a very simple API project for managing Voyage Container Prices, like updating the voyage price, and retrieving the average container price for the last 10 voyages for a given currency. See below for the supported currencies
Providing two main APIs (and one utility endpoint):
UpdatePriceGetAveragePrice
Tools and Technologies used in this project:
- .Net Core
- Asp.Net Core (API)
- C#
- Entity Framework Core (EF Core) with InMemory Db
- Visual Studio 2019
- Docker (on linux)
- API Versioning
- Swagger (Open API) via SwashBuckle library
- Use a cache for our APIs, like Redis or Memcached
- Use a mapper like Automapper
- Securing the APIs via OAuth2.0 and OpenId Connect (maybe via IdentityServer4)
- Use Repository Pattern and UnitOfWork, but because of being a small project with just few CRUD operations, we didn't use it
- USD
- EUR
- DKK
- GBP
container: this word is for the intermodal container, don't get confused with virtualization Container