The first version booking app made for EthMemphis
This project was created using Truffle unbox React, and uses the Grommet UI component library. Barely.
The npm run dev
command runs a localhost and listens for changes in the .scss files. Don't change the .css file, it won't persist. You need sass installed globally on your machine to use this script.
Master branch is what is deployed on Heroku
Dev merges pull requests from other branches.
Pull from Dev and then make a branch with your name or the issue you are working on. Only push to that branch. Pull from Dev and merge, and run locally to catch errors before opening a pull request.
- addRooms(uint[] beds, uint[] roomNum)
- addAccessCode(address[] guest)............... add your own for testing
- reserve(start, stop)
- getNextReservation(address _yourAddr) returns (tokenId, checkInDate, checkOutDate)
- getReservations(tokenId, start, stop).........alternative to the above that shows how we store the info. Only interesting for devs to see.
- getRoomInfo(tokenId)..........displays the status including current renter and number of beds etc.
- access(token_Id)
- settle(token_Id)...... optional. We can call that for them.