Skip to content

A coin flipper created with influences from Onion/Clean/Hexagonal Architectures, DDD, and TDD

License

Notifications You must be signed in to change notification settings

be-rock/coin-flipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coin-flipper

Build Status codecov.io

An implementation of a coin flipper as suggested by...

https://github.com/karan/Projects

Coin Flip Simulation - Write some code that simulates flipping a single coin however many times the user decides. The code should record the outcomes and count the number of tails and heads.

...with influences from:

App Purpose

Given a simple domain (coin flip), apply principles of TDD, DDD, and the above architectures.

App Components

  • Domain Model
  • Event-Driven Architecture
  • Coin Flipper REST API
  • Database Integration (Repository Pattern)
  • 100% Test Coverage

How to run

The app can be initiated with the provided:

scripts/run_app.sh

Once the API is up and running, swagger docs can be accessed from:

http://localhost/8080/docs

Todo

  • paginated api results
  • proper CQRS
  • docker
  • logger decorator
  • https
  • http basic auth
  • Coin Flipper CLI (typer? golang?)

About

A coin flipper created with influences from Onion/Clean/Hexagonal Architectures, DDD, and TDD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published