Skip to content

Pactum/login-with-metamask-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login with MetaMask

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

Live Demo 🚀

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

demo

Getting Started

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.

To start the backend:

cd backend
yarn install
yarn dev # Will reload the node app on file changes

The backend should be running on localhost:8000.

To start the frontend:

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.6%
  • HTML 7.4%
  • CSS 4.0%