Coder Social home page Coder Social logo

merkel-service's Introduction

Maker Badges Merkle Service

A micro service for the Maker Badges to ease client burden.

Getting Started

  1. Clone the repo to your local machine.
  2. Make sure you've got the required global tools by running:
    • npm install -g yarn ts-node
  3. Restore packages by running yarn
  4. Check everything works locally by running yarn test
  5. Deploy to AWS by running yarn deploy
    • Hint set your AWS_PROFILE environment variable if not using the default
      • On fish: set -x AWS_PROFILE profile
      • On bash: export AWS_PROFILE=profile

Other commands:

  • Check the serverless packaging works locally: yarn package
  • Clean generated files left over from build: yarn clean

Writing Tests

Jest has been configured to run any file ending in *.test.ts, *.test.tsx or *.test.js. You can put these in the test folder, but they can also live alongside your code in the src folder if you prefer.

Infrastructure

[DeployPipeline] (https://www.dropbox.com/s/s63c40nqq8q85ax/MakerDAO-Badges-Pipeline.mov?dl=0)

Defaults:

  • Doesn't use VPC
  • Deployed to us-east-1
  • Lambda timeout: 30 seconds

In the serverless.yml file uncomment from line 24 onwards to enable the hyper-paranoid security locked down setup. This uses private subnets in three availability zones, and does not include an internet gateway - which means the lambdas can't access the internet, and the only way they can be invoked is via API gateway.

Key Features when uncommented:

  • No outbound connectivity at all.
  • 3 private subnets.
  • /24 block gives 250 addresses in each subnet
  • 750 addresses available in total (limits lambda instances).

merkel-service's People

Contributors

andersonmmi avatar dependabot[bot] avatar scottrepreneur avatar

Stargazers

 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.