Two companies, COKE and PEPSI, are sharing an office building but as they are competitors, they don’t trust each other.
Tomorrow is COLA day (for one day), that the two companies are celebrating. They are gathering a number of business partners in the building.
In order to optimize space utilization, they have decided to set up a joint booking system where any user can book one of the 20 meeting rooms available, 10 from each company (C01, C02, …, C10 and P01, P02, …., P10).
The booking system has the following functionalities:
- Users can see meeting rooms availability
- Users can book meeting rooms by the hour (first come, first served)
- Users can cancel their own reservations
This DApp is composed of 2 main folders:
blockchain
for the smart contractswww
for the web application
- Go to the
blockchain
folder and runnpm install
- Start Ganache
- Test the contracts with
truffle test
- Deploy the contract via
truffle migrate
- Generate the TypeScript interfaces for the contracts with
npm run types
- Go to the
www
folder and runnpm install
- Test the frontend with
npm run test
- Launch the webapp with
npm run start
- The webapp is available at http://localhost:8080/
Nothing at the moment