sardoru / EthMemphis

The first version booking app made for EthMemphis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EthMemphis

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.

Admin calls

  1. addRooms(uint[] beds, uint[] roomNum)
  2. addAccessCode(address[] guest)............... add your own for testing

Book

  1. reserve(start, stop)

Status

  1. getNextReservation(address _yourAddr) returns (tokenId, checkInDate, checkOutDate)
  2. getReservations(tokenId, start, stop).........alternative to the above that shows how we store the info. Only interesting for devs to see.
  3. getRoomInfo(tokenId)..........displays the status including current renter and number of beds etc.

CheckIn

  1. access(token_Id)

CheckOut

  1. settle(token_Id)...... optional. We can call that for them.

About

The first version booking app made for EthMemphis


Languages

Language:JavaScript 86.2%Language:CSS 13.3%Language:HTML 0.5%