Lotto is a sample project which basically used to consume an API end point to show the results.
-
This is a code challenge to build a simple application or web page to display a Lottery Draw and jackpot information. The endpoint is: https://data.api.thelott.com/sales/vmax/web/data/lotto/opendraws
-
The products display should at least have OZlotto, Gold Lotto and Powerball.
-
The information display in the web page requires to at least have Lottery product display name, logo image, draw date, draw number and jackpack value (Div1Amount).
-
Contains two units test ensuring the API call is valid.
- Helix structure -Tried to pull onion architecute with DDD pattern (Note- Still a few part is pending)
Dillinger uses a number of open source projects to work properly:
- [MVC Framework] - Dot Net MVC
- [Unity] - Unity framework for the DI
on GitHub.
1.open the solution in visual studio.
2.set the Lotto.Web as the startup project.
3.run the Application on IIS1.open the solution in visual studio.
2.set the Lotto.Test as the startup project.
3.run the Application on IIS
For production environments...
Change the Base url in app settings
<add key="LottoBaseAddress" value="https://data.api.thelott.com" />
<add key="LottoCompanyId" value="GoldenCasket"/>I have added under Apache License 2.0