Giter Site home page Giter Site logo

ray's People

Contributors

cathalmchale avatar

Watchers

 avatar

Forkers

mchalejunior

ray's Issues

Stand-up a rendering API

Background

Would like to be able to document the use of this Ray Tracer app imperatively.
Best way to do this, I feel, is:

  • Use Docker to virtualize the run-time environment.
  • Stand-up an API (Json Rest) that will exercise the Ray Tracer like calling directly from code.

Now documentation can be as simple as:

  • Docker build command.
  • Docker run command (or potentially Docker-compose).
  • Fire this Json at an endpoint to generate an image.

Next Steps

Have the DTOs written that will define the Json API. I now need to turn the Json information into a Ray.Domain World that can be passed to the renderer. To do this, I need a number of simple Factories that will interrogate the Json (C# DTOs) and spit out instantiated objects.

Put simply - I need a place for this logic. It doesn't belong in Ray.Domain and I'll strive to keep the Web API layer very thin. So where should it go?
I think a Ray.Command layer will suffice. However, then we have to consider the infrastructure code that goes with this (Command Pattern interfaces and plumbing). I've written it loads of times before, but first I decided to check Nuget and Google.

MS patterns wiki

Discusses the Mediator pattern being used as a pipeline for the Commands/Handlers. This pointed me to a Nuget package by the trusted Jimmy Bogard (AutoMapper).

MediatR 3

I'm immediately convinced that I'll use this, rather than roll my own!

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.