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
- Host: GitHub
- URL: https://github.com/jvanecek/d-altruist
- Owner: jvanecek
- Created: 2017-12-02T14:05:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-12T00:56:54.000Z (over 8 years ago)
- Last Synced: 2025-02-11T12:41:23.460Z (over 1 year ago)
- Topics: angular, blockchain, ethereum, smartcontracts, solidity, truffle
- Language: TypeScript
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# D-Altruist
[](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.