Coder Social home page Coder Social logo

carchain's Introduction

Decentral Rental

This project was built as a final project for Consensys Academy Developer Program

This specific project represents a decentralized car rental serive. Where users can list and rent cars for others to use.

Setup Instructions

This project uses:

Make sure you are running Ganache and Metmask Locally on Port 8545

Compile the Contracts with:
truffle compile

Migrate Contracts with:
truffle migrate

You can ensure the functions test past with:

truffle test

Intall Modules using:
npm install

Run the client
npm run dev

User Stories

Manage

As the owner of the contract, I want to be able to manage the contract and kill further changes if necessary.

  1. Deploy the contract and you are automatically assigned as the manager
  2. In the event of a discovered vulnerability or safety implication, call toggleContractActive to pause rentals, returns, and new cars being added to the contract

List Car for Rent

As a car owner, I want to be able to list a car for rent to be rented and declare it is available for rent once a user returns the car.

  1. Complete the fields within the UI
  2. Click the 'Add Car' button to add to the contract
  3. The newly added car listing will appear and be available

Rent A Car

As a user, I want to be able to see which cars are listed and rent an available one.

  1. Find a car that is listed as available
  2. Press the rent button
  3. The Car will no longer be available for rent and you will be marked as the current renter of the car

Return A Car

  1. Ensure you are the owner of the car by checking the car information
  2. Once the car has been returned safely to you from renter, press the return button
  3. The car will be available once again for rent

carchain's People

Contributors

mgcox avatar

Stargazers

 avatar DROUOT Thomas avatar Sandip Bhujel avatar Dharaneeswaran R avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

carchain's Issues

invalid address

while trying to add the features of the car , the address field keeps throwing up invalid address error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.