-
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 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'; |
const store = createStore((state = { counter: 0 }, action) => { | |
switch(action.type) { | |
case "INCREMENT": | |
return { counter: state.counter + 1 } | |
case "DECREMENT": | |
return { counter: state.counter - 1 } | |
default: | |
return state | |
} | |
}) |
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; |
{ | |
"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": { |
.service('AdminPlantsDevicesCtrlInit', [ | |
// Dependencias | |
'$q', | |
'$route', | |
'Plant', | |
'Notify', | |
function($q, $route, Plant, Notify) { | |
return { | |
prepare: function() { | |
var |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Echk.Web.Mvc | |
{ | |
/// <summary> | |
/// ale's approach | |
/// </summary> |