Looking to build a free hosted production ready app then checkout the links below:
https://scifabric.com/blog/2017/10/13/jekyll-vuejs-bulma.html
Looking to build a free hosted production ready app then checkout the links below:
https://scifabric.com/blog/2017/10/13/jekyll-vuejs-bulma.html
If one doesn’t see where this is going??
require.config({
paths: {
Web3: 'https://unpkg.com/web3@latest',
Axios: 'https://unpkg.com/[email protected]/dist/axios',
}
})
// Our Jekyll data "api"
define('Api', ['Axios'], () => {
return axios.create({
baseURL: 'https://localhost:8000',
withCredentials: false,
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
})
})
// Our smart contracts and blockchain backend
define('Blockchain', ['Web3'], (Web3) => {
let web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'))
return web3;
})
// Import Api and Blockchain classes
require(['Api', 'Blockchain'], (Api, Blockchain) => {
console.log(web3.toBigNumber('234'))
})
Or in other words api’s and dApps can now live on any system be it docker, faas, github pages, gopher, communitygrid.dallasmakerspace.org, or archive.org.