This demo is published as part of the corresponding blog article "One-Click Login with Blockchain: a MetaMask Tutorial".
The working app can be seen on Firebase: https://login-with-metamask.firebaseapp.com.
The backend is hosted on Now by Zeit: https://login-with-metamask.now.sh/api/users
The app is made out of 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.
cd backend
yarn install
yarn dev # Will reload the node app on file changes
The backend should be running on localhost:8000.
cd frontend
yarn install
yarn start # Will refresh the page on file changes
This demo is published as part of the corresponding blog article at https://www.toptal.com/ethereum/one-click-login-flows-a-metamask-tutorial#utilize-unreal-developers-today. Visit https://www.toptal.com/blog and subscribe to our newsletter to read great posts!
If you liked this demo, I appreciate small donations. 0xa395447BF15f7525484C0378c76627D45ADE0B96