Skip to content

Commit

Permalink
feat: added README file
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniolet committed Nov 26, 2021
1 parent 5bfc298 commit 34d7c3d
Show file tree
Hide file tree
Showing 9 changed files with 934 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
build/
.gitignore
.vscode
.vscode
.env
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Hotel Booking DApp
##### A Decenetralized Hotel Booking System
<p>This is a simple POC on Blockchain and Smart Contracts</p>
<p>The DApp(Decentralized Application) basically enables users to list hotels by paying some listing fee and add rooms</p>
<p>User can be a ble to list hotels and book rooms from wherver they are:</p>

<img src="../screenshots/dapp1.png"/>
<img src="../screenshote/dapp2.png"/>
<img src="../screenshots/dapp3.png"/>
22 changes: 18 additions & 4 deletions client/src/components/HotelItem.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
import React, { Component } from 'react';

//import HotelContractABI from '../src/abi/Room.json';
export default class HotelItem extends Component {
constructor(props) {
super(props);
this.state = {
rooms:[]
rooms:[],
hotelId: null,
hotelContractABI:null
}
}

async componentWillMount(){

}

async fetcchRooms(){
async fetchRooms(){

}

async fetchHotelData(){
const web3 = window.web3;

}

render(){
return (
<div className="container">

<div className="col-md-6">
Hotel MetaData Get displayed here
</div>
<div className="col-md-6 row">
<div className="col-md-4">
Rooms Get Listed Here
</div>
</div>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/HotelList.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class HotelList extends Component {
)}
</div>

</div>
</div>
);
}
}
4 changes: 2 additions & 2 deletions client/src/components/NewHotel.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ export default class NewHotel extends Component {
</div>
<div className="form-group row mb-2">
<div className="col-sm-6">
<button type="submit" className="btn btn-primary">Add Hotel</button>
<button type="submit" className="btn btn-primary">List Hotel</button>
</div>
<div className="col-sm-6">
<button onClick={this.clearForm} className="btn btn-primary">Clear Form</button>
<button onClick={this.clearForm} className="btn btn-warning">Clear Form</button>
</div>
</div>
</form>
Expand Down
Loading

0 comments on commit 34d7c3d

Please sign in to comment.