Skip to content

cbonoz/cryptogateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptogateway

Crypto-powered Website Paywalls, powered by Cosmos and Bcoin.

Prototype Built for the the Crypto 4 Your Thoughts hackathon.

Pitch Deck here: Slides

This README focuses on the prototype. Please see the pitch deck for full spec and system architecture.

Concept

Cryptogateway is a free website plugin which wraps any of your desired content around a custom-priced cryptocurrency paywall.

For each customer, an account will automatically be generated which will store any funds sent to you by your website visitors. Each customer will be mapped to a unique address which is used to verify whether they have paid for website access or not. Once the user has paid, he or she will automatically be granted access to the content.

Plugin Component (React)

     Paywall
                    disabled={false} // defaults to false (enabled)
                    onClick={false} // defaults to false (auto blocks if false)
                    amount={.0001} // amount to pay for access
                         amountUnits={"Bitcoin"} // unit of payment
                         domain="www.cryptogateway.com" // domain of website
                         excludedUrls={["/"]} // will disable paywall on these url paths.
                         >
 

Steps for install:

  1. Create account on Cryptogateway.com - registering your domain name.
  2. Install dependencies within Paywall.js
  3. Selectively wrap your sensitive website content (or your entire site) with the Paywall.js component - adding the appropriate payment parameters needed for access.

Screenshots

Home Page

Home page (with paywall applied)

About page

Articles page (more sensitive content)

Article page (with paywall applied)

Structure

  • /cryptogateway: website
  • /server: Lotion/Cosmos server - used for tracking IP address visits

Dev Notes

Starting the website.

From the /cryptogateway folder:

yarn && yarn start

Starting the server. From the /server folder:

yarn && node server.js

About

Crypto-powered website paywall plugin

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •