Skip to content

SC that handles the payment of the rooms

License

Notifications You must be signed in to change notification settings

fcavazzoli/bookbnb

 
 

Repository files navigation

BookBnB

Node.js CI codecov

This is the repository that keeps the Smart Contract of the BookBnB project.

This is for educational purposes do not use this in production

Prerequisites

For this project you should have NVM installed(or the exact same version of node described in .nvmrc)

Test

For the tests to be run, just execute

npm run test

Coverage

For the tests to be run and a coverage report to be generated, just execute

npm run coverage

Linting

For the linters to be generated, just execute

npm run lint

Deploy

For the deployment of this project in each network read the relevant subsection.

The configs to be used are set on migrations/config.json

Local

For this you have to have ganache, or any eth-json-rpc server, running on http://localhost:8545. This can be achieved executing:

npm run ganache

And later deploy using:

npm run deploy-local

Ropsten

For the Ropsten deployment you, having INFURA_ROPSTEN_NODE(URL given by infura) and MNEMONIC(12 words with balance in the ropsten network) set as environment variables, have to run:

npm run deploy-ropsten

Other networks

In order to deploy in other networks, you first have to define the network in truffle-config.js and later define a script analog to the deploy-* scripts.

About

SC that handles the payment of the rooms

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.7%
  • Solidity 16.2%
  • Shell 0.1%