Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gatsbyz/project3
https://github.com/gatsbyz/project3
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/gatsbyz/project3
- Owner: gatsbyz
- Created: 2022-08-18T04:08:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-08T19:50:29.000Z (about 2 years ago)
- Last Synced: 2023-03-10T01:31:47.808Z (over 1 year ago)
- Language: Python
- Size: 4.43 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ETHERCAR
## Executive Summary
EtherCar is our Web 3.0 luxury rental car application designed to allow users to experience luxury travel. The purpose of this tool is to give clients the ability to find vehicles that match their respective lifestyles. From touring the streets of New York to cruising the beaches of Miami, EtherCar will enhance your trips, all with an ironclad layer of security offered by the Ethereum Blockchain.Among the numerous benefits that come with blockchain technology, privacy and data security is a critical one. Consumer data is constantly at risk of data breaches leading to not just millions of accounts getting compromised, but also leading to billions of dollars in industry losses. With blockchain-enabled technology, we can better protect consumer data and privacy through wallet-enabled transactions.
## How To Run
1. Go to the website (Streamlit).
2. Enter the inputs in the sidebar to specify the duration of the rental.
3. Select the car to rent among the choices.
4. Verify the transaction in your wallet.![alt text](https://github.com/gatsbyz/project3/blob/W/Streamlit_app_screenshot.jpg)
## Documents
1. Team Presentations (Slides)
2. Team Charter
3. Video Demo: https://drive.google.com/file/d/15z00u7ckkz-aAKXW5kdPd4lCN7sr3vAv/view
## Tech Dependencies
Required programs, libraries, systems, and overall dependencies:
Solidity 0.5.16,
Python (version 3.0 or later),
Ganache,
Truffle,
JS Node,
JSON,
Web3,
HTTPProvider,
Calendar,
email.mime,
re,
sre_constants,
click,
streamlit,
pandas,
pathlib## Smart Contracts
Two smart contracts are called into the program:
1. Rental.sol - process the rental using the rent function
2. RenterSystem.sol - process the payment using the addRenter, checkOut, balanceOf, balanceOfRenter, and makePayment functions![alt text](https://github.com/gatsbyz/project3/blob/W/code_screenshot.jpg)
## Contributors
Tracy Davis,
Reginald Hyppolite,
Jesse Lee,
Tyler Shubert,
Wonkyung LeeBIG THANKS to all the great TAs and Professor Vinicio DeSola
## Technical Notes
1. Download NodeJS https://nodejs.org/en/download/
2. Run `npm install`. It will install dependencues on package.json
3. Run `npx truffle compile`. This uses truffle to compile the contract.
4. Run `npx truffle develop`. Truffle suite contains a personal blockchain that we can use for testing purposes. You should see an output similar to the following:
```
Truffle Develop started at http://127.0.0.1:9545/Accounts:
(0) 0xdfb772fba7631b5bfde93cc3e2b0e488d1a17b2a
...
(9) 0x974779d6a98264043e8bb1c8b0cf93d9c7141a29Private Keys:
...truffle(develop)>
```
5. In the terminal `truffle(develop)>`, run `migrate`.6. Copy contract address to app.py
```
2_deploy_contracts.js
=====================Replacing 'Rental'
------------------
> transaction hash: 0x02917cc0f53fb5c36a6eb166f6848a44f32f17c2f732ac9b9c9b098dbe7fac71
> Blocks: 0 Seconds: 0
> contract address: 0x56528890De031184b007694D73965CE82CfcA043
```7. Open another terminal window, and run this:
```
$ pip3 install web3
$ python3 app.py
```