Coder Social home page Coder Social logo

clean-arch-workshops's Introduction

Clean Code Architecture Workshops - ADR Example

Starting Project

You need Docker and docker-compose to properly run this project (or configure it yourself using your local env)

There is a Makefile that encapsulates raw commands. So make sure you have make installed. Or use the raw commands defined in the Makefile :)

Starting Project

make start-containers-with-install

Running tests

make run-tests

Project will be available at localhost:8095

There is one example endpoint that you can check out localhost:8095/example/square/{integer}, for example localhost:8095/example/square/10

Task

Implement an Action that allows you to Book a Visit at Doctor with Action-Domain-Responder Pattern.

Functional Requirements You have to return an info to the client if validation fails (annotations) You have to return a created booking id and visit length Make it possible to get response as xml (when header Accept is “application/xml”

Additional (if you implement the above): Make a command to create a booking from console that uses the same action If you have time, implement logic that visits cannot overlap

Do not worry about authentication or authorization: you can mock services that are responsible for these stuff, or take the approach that a system that is connected through Api can make any possible booking.

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.