Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 742 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 742 Bytes

Paid API by mining Cryptocurrency

This repository contains three programs to illustrate a paid API architecture based on Coinhive.

visit demo

[demo]

  • backend sample -> api-sample
    • This is just an ordinary API... No need to consider mining or payment.
    • go, GAE
  • gateway sample -> gateway
    • A hard worker, which communicates with Coinhive, processes a payment, and calls the backend API.
    • go, GAE
  • client sample -> client-sample
    • This program calls an endpoint on the gateway, and displays what is happening.
    • js, static site (i.e. Firebase Hosting, Github Pages, S3, and so on)