Coder Social home page Coder Social logo

giobart / ethercrowdfunding Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.07 MB

A decentralized crowdfunding platform

License: GNU General Public License v3.0

JavaScript 64.65% HTML 17.28% Solidity 18.07%
solidity solidity-dapps solidity-contracts

ethercrowdfunding's Introduction

EtherCrowdfunding

A decentralized crowdfunding platform

The crowdfunding campaign has three main actors:

  • the organizers, those who open the campaign
  • the donors, those who donate to the campaign
  • the beneficiaries, the receivers of the funds collected during the campaign.

contract

Before you get started

In order to build and run this project you need to install some dependencies:

Build the project

If you have Truffle installed correctly just type truffle build in the root directory of the project

Migration

Create your testnet and configure it in truffle-config.js In the current version of the configuration file you can already find a network called migration:

migration: {
      host: "127.0.0.1",     // Localhost (default: none)
      port: 8545,            // Standard Ethereum port (default: none)
      network_id: "*",       // Any network (default: none)
    }

In case you want to use this configured network you can simply install Ganache and run a local test network on port 8545.

Before you start the migration, update the migration script migrations/1_initial_migration.js setting up the addresses of the organizers, the beneficiaries and the campaign duration. Thtat's it, these are the only required steps before of your first migration.

Now migrate the contract using the command: truffle migrate --network migration --reset

Tests

Inside the test/ folder you can find an automated test suite which attempts to prove and test some contract's properties. To run the test suite just use truffle test

Run the frontend (DAPP)

If you would like to run the DAPP fir of all you need to install lite-server and web3

npm install --save lite-server npm install --save web3

Then simply type in the root directory of the project npm run dev to start the server. The DAPP will be available at http://localhost:3000

How the contract works

state-machine

ethercrowdfunding's People

Contributors

giobart avatar

Watchers

 avatar

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.