Nebula: deploy to the decentralized web
npm install nebula#### Nebula is a utility for deploying apps to the decentralized web
If your dapp resolves via DNS or centralized servers is it really a dapp?
npm install nebula
`Programmatic Interface
#### Create the Nebula client
`
import n from 'nebula'
const nebula = n(ipfs, ethereum)
`
ipfs can be:
- A js-ipfs instance
- Configuration for ipfs-http-client
- An IPFS API URL e.g. https://[authToken]@ipfs.nebula.land or http://localhost:5001
If omitted, a connection to http://localhost:5001 will be usedethereum can be:
- Any EIP-1193 provider instance, we recommend eth-provider
- Configuration for eth-provider
If omitted, an eth-provider instance with default configuration will be used#### Deploy an app
`
await nebula.deploy('./app', { ensName: 'nebula.eth' })
`#### Resolve an app
`
await nebula.resolve('nebula.eth')
`Command Line Interface
#### Deploy an app
`
› nebula deploy ./app nebula.eth
`#### Resolve an app
`
› nebula resolve nebula.eth
``