Privete Blockchain RESTful API with Node.js Framework.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# LevelDB
# Crypto.js
# Express.js
# Body-parser
A step by step series of examples that tell you how to get a development env running
Say what the step will be
npm install
node api.js
Open browser to http://localhost:8000/block/0 to see the 0th block information. You can then replace the "0" with any other positive integer that's equal or less than the current block height.
You can use Postman to send GET or POST requests to test the API's functionality. Please refer to the API docs below.
All data is in JSON format, and expects body for POST to be in JSON as well. Method Route Description GET /block/:index Get information of a single block. POST /block Add a new block to the blockchain.
- ExpressJS - The web framework used
- NodeJS - Runtime Environment
- CryptoJS - JavaScript library of cryptography standards
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
Mohamed Omar
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc