EtherSketch

所属分类:以太坊
开发工具:CSS
文件大小:27669KB
下载次数:0
上传日期:2020-03-08 18:44:42
上 传 者sh-1993
说明:  这是SouleLabs的一项实验,旨在使用以太坊去中心化应用程序促进像素广告。
(This is an experiment from SouleLabs to facilitate pixel advertising using an Ethereum decentralized application.)

文件列表:
.eslintignore (129, 2020-03-09)
Procfile (20, 2020-03-09)
app (0, 2020-03-09)
app\index.html (925, 2020-03-09)
app\javascripts (0, 2020-03-09)
app\javascripts\app.js (3664, 2020-03-09)
app\stylesheets (0, 2020-03-09)
app\stylesheets\app.css (566, 2020-03-09)
config (0, 2020-03-09)
config\env.js (1102, 2020-03-09)
config\jest (0, 2020-03-09)
config\jest\cssTransform.js (323, 2020-03-09)
config\jest\fileTransform.js (301, 2020-03-09)
config\paths.js (1888, 2020-03-09)
config\polyfills.js (613, 2020-03-09)
config\webpack.config.dev.js (9642, 2020-03-09)
config\webpack.config.prod.js (10068, 2020-03-09)
contracts (0, 2020-03-09)
contracts\EtherSketch.sol (1253, 2020-03-09)
contracts\Migrations.sol (493, 2020-03-09)
contracts\zeppelin (0, 2020-03-09)
contracts\zeppelin\Bounty.sol (2061, 2020-03-09)
contracts\zeppelin\DayLimit.sol (2054, 2020-03-09)
contracts\zeppelin\LimitBalance.sol (747, 2020-03-09)
contracts\zeppelin\MultisigWallet.sol (3754, 2020-03-09)
contracts\zeppelin\ReentrancyGuard.sol (909, 2020-03-09)
contracts\zeppelin\SafeMath.sol (1212, 2020-03-09)
contracts\zeppelin\lifecycle (0, 2020-03-09)
contracts\zeppelin\lifecycle\Destructible.sol (526, 2020-03-09)
contracts\zeppelin\lifecycle\Migrations.sol (524, 2020-03-09)
contracts\zeppelin\lifecycle\Pausable.sol (951, 2020-03-09)
contracts\zeppelin\lifecycle\TokenDestructible.sol (1017, 2020-03-09)
contracts\zeppelin\ownership (0, 2020-03-09)
contracts\zeppelin\ownership\Claimable.sol (895, 2020-03-09)
contracts\zeppelin\ownership\Contactable.sol (551, 2020-03-09)
contracts\zeppelin\ownership\DelayedClaimable.sol (1010, 2020-03-09)
contracts\zeppelin\ownership\HasNoContracts.sol (648, 2020-03-09)
... ...

# EtherSketch This is an experiment from [SouleLabs](https://github.com/SouleLabs) around [pixel advertising](https://en.wikipedia.org/wiki/Pixel_advertising) using an [Ethereum](https://www.ethereum.org/) [decentralized application](https://en.wikipedia.org/wiki/Ethereum#Decentralized_applications). ## Quickstart Make sure you have [Truffle](http://truffleframework.com/docs/getting_started/installation), [TestRPC](https://www.npmjs.com/package/truffle-testrpc) and [Node 6.x](https://nodejs.org/en/) installed and then run: ```console $ truffle-testrpc & $ truffle compile $ truffle migrate $ npm install $ npm start ``` # Structure This project was bootstraped with [truffle-init-webpack](https://github.com/trufflesuite/truffle-init-webpack) and later had some additions based on [truffle-box-auth](https://github.com/truffle-box/truffle-box-auth), which means it carries some ejected features of [create-react-app](https://github.com/facebookincubator/create-react-app). It should include contracts, migrations, tests, user interface and Webpack build pipeline. If you need to know more about rationales about some structures or decisions, please, checkout those source projects as well. ## Directories Root folders come out from a combination of both Truffle and ReactJS projects. The following serve for Truffle and Ethereum purpose: - *contracts*: Ethereum contracts definition written in Solidity; - *migrations*: Truffle migrations; - *test*: unit tests for such contracts; From the ReactJS front-end side, we have these directories: - *config*: Webpack and other configuration as from an ejected `create-react-app` project; - *public*: public HTML and other ordinary files for the front-end - *scripts*: build and test scripts as from an ejected `create-react-app` project; - *src*: actual ReactJS source code; # Building and Running There are two pieces of code to prepare and build before running the application locally. To get the Ethereum or back-end piece ready, you need to: 1. Run `truffle compile` 2. Run `truffle migrate` Note that you need a running RPC server for that. We advise you to use `truffle-testrpc`. Truffle framework must also be previously installed. For the front-end, you'll need to: 1. Run `npm install` 2. Run `npm start` You are expected to have at least Node 6.x installed so that works fine. After you call `npm start`, you should be able to access http://localhost:3000 from your browser. ## Front-end tests 1. You can run front-end tests with `npm test`

近期下载者

相关文件


收藏者