This application is a proof of concept for a room booking system for Cola Day 2022.
- shows meeting rooms availability
- allows users to book meeting rooms by the hour (up to 4 hours per event)
- allows users to cancel their booking
- stores data in blockChain (Ropsten Test Network)
- encrypts event titles with public key encryption (end to end)
- On your browser, login to MetaMask and connect to Ropsten Testnet.
- Visit the demo site: https://coladay.vercel.app/
- Then, drag your mouse over the timetable to start booking rooms!
- This web app is designed for Desktop/Laptop devices, not compatible with mobile browsers.
- Each time you create or delete an event on the blockchain, you will need Ethereum gas for the transaction.
- The event date is automatically updated to tomorrow for demo purpose.
$ cd truffle
$ mv secrets_template.json secrets.json
Then, edit the secrets.json file with your own secret keys and mnemonic phrase:
- mnemonic -> use your account on testnet. To create a new account, run
$ npx mnemonics
. - projectId -> use your project ID on Infura
- etherscanApiKey
$ cd truffle
$ npm install
$ npm install -g truffle
$ npm install -g ganache-cli
$ cd truffle
$ ganache-cli --accounts 10
$ truffle compile
$ truffle compile && truffle migrate --network develop
$ truffle test --show-events
$ truffle compile &&truffle migrate --network ropsten
$ cd client
$ npm install
$ npm start
$ npm build