GithubHelp home page GithubHelp logo

vinlotteri's Introduction

Vinlotteri

This project is based of the template for ASP.NET Core Web app with React.js, read more here. It uses Azure App Service to host the app with SpaProxy for frontend hosting. With a PostgreSQL instance running in CosmosDb.

The web app is running on https://vinlotteri-1234.azurewebsites.net/

What has (not) been done?

The task was to implement a fullstack vinlotteri app with focus on the backend, preferably in about two hours.

Because of the time constraint some corners have been cut:

  • There is no CQRS and no domain layer. The database is accessed directly from the controller, this creates tight coupling resulting in e.g. the impossibility of good unit testing. This is something I normally would have implemented, but I want to respect the constrain, and would rather talk through this design pattern during the interview.
  • Testing, I would argue lack of testing is reasonable given the constraints.
  • The task specified that not all features needed to be implemented. Therefore I have not focused on the economical side, nor on the actual wine part of the lottery. I had an idea of faking a service for calling Vinmonopolet APIs to get "random" wine in different price classes.
  • No data validation, so the requirement for having tickets be in 1 - 100 range is ignored.
So, what has actually been done then?
  • Have set up a Azure App Service, Cosmos Db running PostgreSQL (because I'm most familiar with that).
  • An ASP.NET application commanding and querying the database from the controller, and not much else.
  • A React frontend, displaying tickets and users.

PS. There db secret is in this repo, I had some problem using Configurations from App Service to read the connection string in the app, so I gave up on that.

vinlotteri's People

Contributors

ovravna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.