All Projects → unlock-protocol → Unlock

unlock-protocol / Unlock

Licence: mit
Ʉnlock is a protocol for memberships built on a blockchain.

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Projects that are alternatives of or similar to Unlock

Protocol
Enzyme Protocol Implementation
Stars: ✭ 211 (-42.19%)
Mutual labels:  blockchain, ethereum, protocol
Aztec
Public repository for the AZTEC protocol
Stars: ✭ 483 (+32.33%)
Mutual labels:  blockchain, ethereum, protocol
Framework
0xcert Framework - JavaScript framework for building decentralized applications - build something unique
Stars: ✭ 213 (-41.64%)
Mutual labels:  blockchain, ethereum, protocol
Graph Node
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Stars: ✭ 884 (+142.19%)
Mutual labels:  blockchain, ethereum, protocol
Merkletreejs
🌱 Construct Merkle Trees and verify proofs in JavaScript.
Stars: ✭ 238 (-34.79%)
Mutual labels:  blockchain, ethereum, protocol
Web3j
Lightweight Java and Android library for integration with Ethereum clients
Stars: ✭ 3,537 (+869.04%)
Mutual labels:  blockchain, ethereum
Awesome Blockchains
A collection about awesome blockchains - open distributed public databases w/ crypto hashes incl. git ;-). Blockchains are the new tulips 🌷🌷🌷. Distributed is the new centralized.
Stars: ✭ 3,243 (+788.49%)
Mutual labels:  blockchain, ethereum
Status React
a free (libre) open source, mobile OS for Ethereum
Stars: ✭ 3,307 (+806.03%)
Mutual labels:  blockchain, ethereum
Requestnetwork
A JavaScript library for interacting with the Request Network protocol
Stars: ✭ 311 (-14.79%)
Mutual labels:  ethereum, protocol
Go Cyber
Your 🔵 Superintelligence
Stars: ✭ 270 (-26.03%)
Mutual labels:  blockchain, protocol
Khipu
An enterprise blockchain platform based on Ethereum
Stars: ✭ 301 (-17.53%)
Mutual labels:  blockchain, ethereum
Squeezer
Squeezer Framework - Build serverless dApps
Stars: ✭ 3,242 (+788.22%)
Mutual labels:  blockchain, ethereum
0xdeca10b
Sharing Updatable Models (SUM) on Blockchain
Stars: ✭ 285 (-21.92%)
Mutual labels:  blockchain, ethereum
Yearn Protocol
Yearn smart contracts
Stars: ✭ 277 (-24.11%)
Mutual labels:  blockchain, ethereum
Uport Connect
Main uPort library for front end developers
Stars: ✭ 295 (-19.18%)
Mutual labels:  blockchain, ethereum
Eventeum
A resilient Ethereum event listener that bridges your smart contract events and backend microservices
Stars: ✭ 272 (-25.48%)
Mutual labels:  blockchain, ethereum
Cryptolist
Curated collection of blockchain & cryptocurrency resources.
Stars: ✭ 3,501 (+859.18%)
Mutual labels:  blockchain, ethereum
Ethvm
⚡️EthVM: Open Source Processing Engine and Block Explorer for Ethereum ⚡️
Stars: ✭ 319 (-12.6%)
Mutual labels:  blockchain, ethereum
Contracts
[DEPRECATED] 0x smart contracts and tests.
Stars: ✭ 317 (-13.15%)
Mutual labels:  blockchain, ethereum
Love Ethereum
区块链学习
Stars: ✭ 323 (-11.51%)
Mutual labels:  blockchain, ethereum

Unlock


This repository includes all the code deployed by Unlock, including smart contracts and the web app running at unlock-protocol.com.

Unlock is a membership protocol, built on a blockchain. It enables creators to monetize their content or software without relying on a middleman. It lets consumers manage all of their subscriptions in a consistent way, as well as earn discounts when they share the best content and applications they use.

Read more about why we're building Unlock.

License: MIT Build Status

Demo

You can try Unlock using the Ethereum blockchain on our homepage.

We are building this in the open, which means you can also run the code locally (see instructions below). You can try out the staging version - which runs the latest, in-progress code, but against the Rinkeby test network - at https://staging.unlock-protocol.com.

Finally, you can learn more on our documentation wiki.

Contributing

Thanks for your interest in contributing to Unlock! We're excited you're here. There are a variety of ways to contribute to the project. Please read more about contributing in our contributor guide. Please also check our code of conduct for all participants in our community.

Getting started

We use docker to run a set of containers which provide the required infrastructure (database, local ethereum test network, subgraph...)

  1. Check out the code from this repository

Unlock uses a mono repo which includes all the services and applications we develop.

git clone https://github.com/unlock-protocol/unlock
cd unlock
  1. Install all dependencies

This will install all dependencies required for all the Unlock components (smart contracts and react app). You'll need yarn installed globally.

yarn
  1. Set up your environment variables

At the root of the repo, add a file called .env.dev.local which includes the following variables and add your wallet address to the first line:

ETHEREUM_ADDRESS=<your ethereum address>
READ_ONLY_PROVIDER=http://localhost:8545
LOCKSMITH_URI=http://localhost:8080
WEDLOCKS_URI=http://localhost:1337
DASHBOARD_URL=http://localhost:3000
PAYWALL_URL=http://localhost:3001
PAYWALL_SCRIPT_URL=http://localhost:3001/static/paywall.min.js
UNLOCK_STATIC_URL=http://localhost:3002
UNLOCK_TICKETS_URL=http://0.0.0.0:3003
ERC20_CONTRACT_SYMBOL=DAI
ERC20_CONTRACT_ADDRESS=0xFcD4FD1B4F3d5ceDdc19004579A5d7039295DBB9
BOOTSTRAP_AMOUNT=15.0
HTTP_PROVIDER_HOST=127.0.0.1
HTTP_PROVIDER_PORT=8545
LOCKSMITH_PURCHASER_ADDRESS=0xe29ec42f0b620b1c9a716f79a02e9dc5a5f5f98a

Make sure you change the value of ETHEREUM_ADDRESS to use your main Ethereum address (the one you use with your Metamask for example). This will let you interract with the application using your regular setup.

  1. Run the docker cluster.

Once docker has been installed on your machine, start the cluster:

$ cd docker && docker-compose up --build

This cluster includes all the required "infrastructure" to run our apps locally. When starting this script does several things: deploys the unlock smart contract, transfers eth to your address, ... etc. It is actually defined in both docker-compose.yml and docker-compose.override.yml.

  1. Run the app

This applies to any of our applications, but we'll take unlock-app as an example as it is our "main" dashboard:

cd unlock-app && yarn dev

Important: You should then head to http://localhost:3000/dashboard so you can start using the application and deploy locks locally. (going to the root will redirect you to http://localhost:3002 which is our static landing page site.)

Thank you

BrowserStack Logo

Thanks to BrowserStack for providing the infrastructure that allows us to test in real browsers.

Thank you to all the Members of our lock as well! You can easily join this list by clicking on the ❤️ Sponsor button (it's free!) at the top of this page too.

Members

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].