https://github.com/amazingandyyy/car-violation-blockchain-ledger
A Public Blockchain that can tracking car violation history.
https://github.com/amazingandyyy/car-violation-blockchain-ledger
blockchain car-voilation distributed-ledger insurance nodejs utility-library
Last synced: 5 months ago
JSON representation
A Public Blockchain that can tracking car violation history.
- Host: GitHub
- URL: https://github.com/amazingandyyy/car-violation-blockchain-ledger
- Owner: amazingandyyy
- License: mit
- Created: 2018-04-19T02:33:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T21:35:51.000Z (over 7 years ago)
- Last Synced: 2025-05-12T14:28:39.140Z (5 months ago)
- Topics: blockchain, car-voilation, distributed-ledger, insurance, nodejs, utility-library
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# car-violation-blockchain-ledger [](https://travis-ci.org/amazingandyyy/car-violation-blockchain-ledger )
A Public Blockchain that can track car violation history.
## Run it on your machine
```
$ npm clone https://github.com/amazingandyyy/blockchain-in-node.git
$ npm i
$ npm run dev // default on port 3000$ npm run nodes // default on port 3000
$ npm run nodes 3000 // listening on port 3000
$ npm run nodes 3001 // listening on port 3001
$ npm run nodes 3002 // listening on port 3002
```## HTTP Endpoints
```
GET /blockchain // see the link-list itself
POST /blockchain/mine // find the next special hash
POST /blockchain/body // add new data to the chain
sample body {
"driverLicenseNumber": "DD1234",
"voilationDate": "04/29/2018",
"voilationType": "Speeding"
}GET /blockchain/nodes // get a list of all nodes
GET /blockchain/nodes/resolve // fetch the longest chain
POST /blockchain/nodes/register // add nodes urlsPOST /blockchain/records/:licenseNumber // get record of the given license Number
```### There are many can be done:
Please feel free to [fork](https://github.com/amazingandyyy/car-violation-blockchain-ledger#fork-destination-box), clone or send me [PR](https://github.com/amazingandyyy/car-violation-blockchain-ledger/pulls)### Author
Andy Chen([amazingandyyy](https://github.com/amazingandyyy))### LICENSE
[MIT](https://github.com/amazingandyyy/blockchain-in-node/blob/master/LICENSE)[](https://github.com/standard/standard)