Giter Site home page Giter Site logo

glenwatson / paper-tactics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kharacternyk/paper-tactics

0.0 0.0 0.0 298 KB

Fork of https://github.com/Kharacternyk/paper-tactics

Home Page: https://www.paper-tactics.com

License: GNU Affero General Public License v3.0

Python 98.74% Nix 1.26%

paper-tactics's Introduction

Paper Tactics

This is the backend for www.paper-tactics.com. The frontend is also open source.

Architecture

The application has borrowed the concepts of a port and an adapter from the hexagonal architecture and the concepts of a use case and an entity from the clean architecture. The dependency graph looks like this:

architecture graph

Deployment

The production runs on AWS as a few lambdas, a few DynamoDB tables and a WebSocket AWS API Gateway. A CloudFormation template and the lambdas are within the aws/ directory. A lambda instantiates adapters, parses requests, and invokes a use case.

Development

app.py is an application for local testing. It requires bidict, websockets and nest-asyncio from PyPI. The frontend can connect to your locally run server by selecting Localhost from the server drop-down.

Testing

Entity tests require pytest and hypothesis. AWS adapter tests also require docker, moto and boto3. Most of the tests check a lot of random inputs (property based, hypothesis), so it's best to run them selectively.

paper-tactics's People

Contributors

kharacternyk 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.