All Projects → amaurym → Login With Metamask Demo

amaurym / Login With Metamask Demo

Licence: mit
Demo project for "One-click Login with Blockchain: A MetaMask Tutorial"

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Login With Metamask Demo

Noiseprotocol
Noise Protocol Framework - Python 3 implementation
Stars: ✭ 142 (-9.55%)
Mutual labels:  cryptography
Cryptokernel
A SDK for implementing blockchain-based digital currencies
Stars: ✭ 146 (-7.01%)
Mutual labels:  cryptography
Auth Adt
Authenticated Data Structures Generically
Stars: ✭ 150 (-4.46%)
Mutual labels:  cryptography
Dumb Crypto
Dumb, but easily verifiable implementations of crypto algorithms
Stars: ✭ 137 (-12.74%)
Mutual labels:  cryptography
Wasm Crypto
A WebAssembly (via AssemblyScript) set of cryptographic primitives for building authentication and key exchange protocols.
Stars: ✭ 146 (-7.01%)
Mutual labels:  cryptography
Branca
🔑 Secure alternative to JWT. Authenticated Encrypted API Tokens for Go.
Stars: ✭ 147 (-6.37%)
Mutual labels:  cryptography
Crypto1 bs
Bitsliced Crypto-1 brute-forcer
Stars: ✭ 140 (-10.83%)
Mutual labels:  cryptography
Argon2rs
The pure-Rust password hashing library running on Argon2.
Stars: ✭ 157 (+0%)
Mutual labels:  cryptography
Simon Speck
The SIMON and SPECK families of lightweight block ciphers. #nsacyber
Stars: ✭ 146 (-7.01%)
Mutual labels:  cryptography
Dontclickshit
Як не стати кібер-жертвою
Stars: ✭ 149 (-5.1%)
Mutual labels:  cryptography
Mpyc
MPyC for Secure Multiparty Computation in Python
Stars: ✭ 142 (-9.55%)
Mutual labels:  cryptography
Tink
Tink is a multi-language, cross-platform, open source library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.
Stars: ✭ 11,855 (+7450.96%)
Mutual labels:  cryptography
Simplednscrypt
A simple management tool for dnscrypt-proxy
Stars: ✭ 1,901 (+1110.83%)
Mutual labels:  cryptography
Wolfssh
wolfSSH is a small, fast, portable SSH implementation, including support for SCP and SFTP.
Stars: ✭ 142 (-9.55%)
Mutual labels:  cryptography
Discordcrypt
End-To-End File & Message Encryption For Discord
Stars: ✭ 150 (-4.46%)
Mutual labels:  cryptography
Dizk
Java library for distributed zero knowledge proof systems
Stars: ✭ 140 (-10.83%)
Mutual labels:  cryptography
Awesome Virgil
Key Management and Crypto Building Block for your App or Device.
Stars: ✭ 146 (-7.01%)
Mutual labels:  cryptography
Bot18
Bot18 is a high-frequency cryptocurrency trading bot developed by Zenbot creator @carlos8f
Stars: ✭ 157 (+0%)
Mutual labels:  cryptography
Shamir
A Java implementation of Shamir's Secret Sharing algorithm over GF(256).
Stars: ✭ 153 (-2.55%)
Mutual labels:  cryptography
Torus Node
Torus nodes run a Distributed Key Generation protocol amongst themselves that allows for the generation, storage and assignment of cryptographic keys
Stars: ✭ 148 (-5.73%)
Mutual labels:  cryptography

Login with MetaMask

Actions Status David (backend) David (frontend)

This demo is published as part of the corresponding blog article: "One-Click Login with Blockchain: a MetaMask Tutorial".

❗Important note. The article was written in March 2018, and in between, MetaMask introduced a breaking change. The codebase has since then been updated to support the breaking change. As such, the snippets in the article might not be exactly the same as the updated code today. The login flow however is still exactly the same. If you want to see the original code, please visit the original branch.

Live Demo: https://amaurym.com/login-with-metamask-demo/

demo

Getting Started

There are 2 packages in this repo: a backend which is a REST API written in Express, and a frontend which is a React single-page application. It's really a demo, so I tried to use as few libraries as possible, and the most popular ones when possible.

The simplest way to get started is to launch the demo using Docker Compose. Alternatively you could launch docker the containers manually, or run the node services using yarn.

1. Launch the demo using Docker Compose:

docker-compose up -d

This will setup the bakcend listening on localhost:8000 and the frontend on localhost:3000.

2. Launching the demo using Docker:

Build and launch the backend:

cd backend
docker build -t login-backend .
docker run -d -p 8000:8000 login-backend

Build and launch the frontend:

cd frontend
docker build -t login-frontend .
docker run -d -p 3000:3000 login-frontend

You can then access the frontend app on localhost:3000.

3. Start the demo using Yarn:

From the root folder of this repo, run

yarn install # Install root dependencies (for TS & linting in your IDE)
cd packages/backend && yarn install # Install backend packages
cd ../frontend && yarn install # Install frontend packages
cd ../.. # Go back to root folder
yarn start # Will launch the frontend and the backend at the same time

The backend should be running on localhost:8000, and the frontend on localhost:3000.

Alternatively, you can start the frontend and the backend separately:

# Start the backend
cd packages/backend
yarn start

# Start the frontend
cd packages/frontend
yarn start

Tests

Since this project is a demo, I haven't written any tests for it. Only code linting is performed, via eslint and prettier, which you can run using yarn lint.

Credits

If you liked this demo, I appreciate donations. My Ethereum address is 0xa395447BF15f7525484C0378c76627D45ADE0B96.


This demo is published as part of the corresponding blog article at https://www.toptal.com/ethereum/one-click-login-flows-a-metamask-tutorial.

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