An open API service indexing awesome lists of open source software.

https://github.com/jvanecek/d-altruist

A DApp for donations
https://github.com/jvanecek/d-altruist

angular blockchain ethereum smartcontracts solidity truffle

Last synced: 2 months ago
JSON representation

A DApp for donations

Awesome Lists containing this project

README

          

# D-Altruist

[![Build Status](https://travis-ci.org/jvanecek/d-altruist.svg?branch=master)](https://travis-ci.org/jvanecek/d-altruist)

This repository hosts the final project for a course of Ethereum and SmartContracts. Is a DApp for ethers donations.

A [PPT](https://docs.google.com/presentation/d/1_c2FpUN39uhK3S3j8Cy7G3Zi9_ZBmv5ayXdMvChX6Ms/edit?usp=sharing) presentation in spanish is available.

## Installation

1. Install truffle and an ethereum client. For local development, try EthereumJS TestRPC.
```shell
npm install -g truffle
npm install -g ethereumjs-testrpc
truffle version
# Truffle v4.0.1 (core: 4.0.1)
# Solidity v0.4.18 (solc-js)
```

2. Install dependencies.
```shell
npm install
```

3. Run testrpc on a separate terminal
```shell
npm run startrpc
```

4. Compile the contracts and deploy.
```shell
truffle migrate
```

5. Run the tests.
```shell
truffle test
```

6. Run the web app.
```shell
npm run start # and navigate to http://localhost:4200
```

Note: If while compiling, angular fails with `ERROR in src/app/services/contracts.service.ts(8,29): error TS2307: Cannot find module '../../../build/contracts/Donator.json'` but you already compiled the contracts, I fix it just writing a space in `src/app/app.component.ts` and angular will compile again successfully.