├── public ├── favicon.ico ├── logo192.png ├── logo512.png ├── robots.txt ├── Images │ └── estate.jpg ├── manifest.json └── index.html ├── src ├── Assets │ ├── BC.png │ ├── Eth.png │ ├── Logo.png │ ├── ipfs.png │ ├── media.png │ ├── Solidity.png │ ├── ReactLogo.png │ ├── homepageimg.png │ ├── sellimage.png │ └── MENU.svg ├── index.js ├── index.css ├── App.js ├── Pages │ ├── RealEstate.sol │ ├── BuyEstate.js │ ├── SellEstate.js │ ├── Home.js │ └── escrow.sol ├── Components │ ├── Boxes.js │ ├── Navbar.js │ ├── Cards.js │ └── Footer.js ├── context │ └── ContractContext.js ├── services │ └── Estates.js └── App.css ├── .gitignore ├── package.json └── README.md /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/Assets/BC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/BC.png -------------------------------------------------------------------------------- /src/Assets/Eth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/Eth.png -------------------------------------------------------------------------------- /src/Assets/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/Logo.png -------------------------------------------------------------------------------- /src/Assets/ipfs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/ipfs.png -------------------------------------------------------------------------------- /src/Assets/media.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/media.png -------------------------------------------------------------------------------- /src/Assets/Solidity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/Solidity.png -------------------------------------------------------------------------------- /public/Images/estate.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/public/Images/estate.jpg -------------------------------------------------------------------------------- /src/Assets/ReactLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/ReactLogo.png -------------------------------------------------------------------------------- /src/Assets/homepageimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/homepageimg.png -------------------------------------------------------------------------------- /src/Assets/sellimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainik10/Real-Estate-DApp/HEAD/src/Assets/sellimage.png -------------------------------------------------------------------------------- /src/Assets/MENU.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | import { ContractProvider } from './context/ContractContext'; 7 | 8 | const root = ReactDOM.createRoot(document.getElementById('root')); 9 | root.render( 10 | 11 | 12 | 13 | ); 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; 2 | import './App.css'; 3 | import Home from './Pages/Home'; 4 | import BuyEstate from './Pages/BuyEstate'; 5 | import SellEstate from './Pages/SellEstate'; 6 | 7 | function App() { 8 | return ( 9 | <> 10 | 11 | 12 | } > 13 | } > 14 | } > 15 | 16 | 17 | 18 | ); 19 | } 20 | 21 | export default App; 22 | -------------------------------------------------------------------------------- /src/Pages/RealEstate.sol: -------------------------------------------------------------------------------- 1 | //SPDX-License-Identifier: Unlicense 2 | pragma solidity ^0.8.0; 3 | 4 | import "@openzeppelin/contracts/utils/Counters.sol"; 5 | import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; 6 | import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; 7 | 8 | contract RealEstate is ERC721URIStorage { 9 | using Counters for Counters.Counter; 10 | Counters.Counter private _tokenIds; 11 | 12 | constructor() ERC721("Real Estate", "REAL") {} 13 | 14 | function mint(string memory tokenURI) public returns (uint256) { 15 | _tokenIds.increment(); 16 | 17 | uint256 newItemId = _tokenIds.current(); 18 | _mint(msg.sender, newItemId); 19 | _setTokenURI(newItemId, tokenURI); 20 | 21 | return newItemId; 22 | } 23 | 24 | function totalSupply() public view returns (uint256) { 25 | return _tokenIds.current(); 26 | } 27 | } -------------------------------------------------------------------------------- /src/Components/Boxes.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | const Boxes = () => { 4 | return ( 5 | <> 6 |
7 |
8 |
9 |
10 |
11 | 12 |
13 |
14 | 15 |
16 | Lorem ipsum dolor, sit amet consectetur adipisicing elit. Distinctio natus esse possimus architecto 17 |
18 | 19 | 20 |
21 |
22 |
23 | 24 | ) 25 | } 26 | 27 | export default Boxes -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dainu", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.16.5", 7 | "@testing-library/react": "^13.4.0", 8 | "@testing-library/user-event": "^13.5.0", 9 | "bootstrap": "^5.3.0-alpha2", 10 | "ethers": "^6.8.0", 11 | "react": "^18.2.0", 12 | "react-dom": "^18.2.0", 13 | "react-router-dom": "^6.10.0", 14 | "react-scripts": "^5.0.1", 15 | "web-vitals": "^2.1.4" 16 | }, 17 | "scripts": { 18 | "start": "react-scripts start", 19 | "build": "react-scripts build", 20 | "test": "react-scripts test", 21 | "eject": "react-scripts eject" 22 | }, 23 | "eslintConfig": { 24 | "extends": [ 25 | "react-app", 26 | "react-app/jest" 27 | ] 28 | }, 29 | "browserslist": { 30 | "production": [ 31 | ">0.2%", 32 | "not dead", 33 | "not op_mini all" 34 | ], 35 | "development": [ 36 | "last 1 chrome version", 37 | "last 1 firefox version", 38 | "last 1 safari version" 39 | ] 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Pages/BuyEstate.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Navbar from '../Components/Navbar' 3 | import Cards from '../Components/Cards' 4 | import { Link } from 'react-router-dom' 5 | import Footer from '../Components/Footer' 6 | 7 | const BuyEstate = () => { 8 | return ( 9 | <> 10 | 11 |
12 |
14 |
15 |
16 | Buy Properties
Without any headache 17 |
18 |
19 | Browse latest Estates 20 |
21 |
22 |
23 | 24 | 25 |
26 | 27 |
28 | 29 |
30 |