damoresa / bookings-poc

Ethereum blockchain and web3js POC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hotels Booking POC

POC that features a room booking system.
A REST API is provided that queries the Smart Contract and generates the allowed transactions.

Use cases

At this point in time, the POC is limited to booking creations over the pre-allocated hotels and rooms. It is also restricted to a single user, since addresses are not handled on the basic version.

On the future, it may support:

  • Multi-user booking support (using addresses)
  • Hotel management
  • Room management
  • Smart Contract unit testing

Technologies

  • Ethereum private blockchain network.
  • Solidity as the Smart Contract implementation language.
  • Web3Js connectors.
  • ExpressJS REST API.

Util scripts

All the provided scripts are implemented using NodeJS.

  • compile.js: Script that compiles the Smart Contract.
  • deploy.js: Script that compiles and then deploys the Smart Contract on the private Ethereum blockchain network.
  • execute.js: Script that initializes preconfigured data on the deployed Smart Contract and then queries it.
    • NOTE: This script uses a lot of scripts from the scripts folder which abstract the Web3Js API.

About

Ethereum blockchain and web3js POC


Languages

Language:JavaScript 100.0%