Skip to content

andrearanica/blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blockchain

Web app that simulates a blockchain made 100% in JavaScript.

The blockchain backend is made in Javascript + Express with MogoDB as DBMS
The frontend is made in React

🚀 Functionalities

  • Login and registration
  • Show all blocks
  • Mine new blocks
  • Earn money

⚙️ Endpoints

Method Endpoint Description
POST /auth/login Login with username & password
POST /auth/register Register new account
GET /blockchain Get the entire blockchain
POST /blockchain Add new block
GET /users Get account info

For every request (except login and signup) you need a jwt token
The jwt token is returned by the /auth/login endpoint and it should be put int the Authorization header

❤️ Credits

More icons created by Freepik - Flaticon

About

Simple blockchain simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published