-
Fix the route when necessary
-
Run
npm init
yarn add express
node index.js
| FROM microsoft/dotnet:sdk | |
| LABEL author="Dan Wahlin" | |
| ENV DOTNET_USE_POLLING_FILE_WATCHER=1 | |
| ENV ASPNETCORE_URLS=http://*:5000 | |
| EXPOSE 5000 |
| import Contract from 'truffle-contract'; | |
| import VotingArtifact from '../build/contracts/Voting.json'; | |
| import Web3 from 'web3'; | |
| function Star(candidate) { | |
| const Voting = Contract(VotingArtifact); | |
| var web3Provided; |
| var Migrations = artifacts.require('./Migrations.sol'); | |
| module.exports = function(deployer) { | |
| deployer.deploy(Migrations, { gas: 4612388 }); | |
| }; | |
| { | |
| "name": "exampleapp", | |
| "version": "0.0.1", | |
| "private": true, | |
| "scripts": { | |
| "start": "node_modules/react-native/packager/packager.sh --nonPersistent", | |
| "test": "jest", | |
| "build-uport-connect": "node_modules/.bin/derequire node_modules/uport-connect/dist/uport-connect.js >src/vendor/uport-connect.js" | |
| }, | |
| "dependencies": { |
| import Web3 from 'web3'; | |
| const ProviderEngine = require('web3-provider-engine'); | |
| const Web3Subprovider = require('web3-provider-engine/subproviders/web3.js'); | |
| const HookedWalletEthTxSubprovider = require('web3-provider-engine/subproviders/hooked-wallet-ethtx.js'); | |
| const PUBLIC_ACCOUNT = '0xPUBLIC_ACCOUNT_HERE'; |
| module.exports = { | |
| parser: require.resolve("babel-eslint"), | |
| env: { | |
| es6: true | |
| }, | |
| parserOptions: { | |
| sourceType: "module", | |
| ecmaFeatures: { |
| import React, { Component } from 'react' | |
| /** | |
| * Creates a component class that renders the given Material UI component | |
| * | |
| * @param MaterialUIComponent The material ui component to render | |
| * @param mapProps A mapping of props provided by redux-form to the props the Material UI | |
| * component needs | |
| */ | |
| export default function createComponent(MaterialUIComponent, mapProps) { |