This example tutorial app show cases how to create and manage web services for Public ID on SAFE Network. Demonstrates the usage of MutableData API, NFS API, Authentication APIs.
Clone or download
Latest commit 3f49e35 Jan 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Update webpack deps Jan 8, 2019
flow-typed Initial import of code from examples app branch: joshuef/Playground3-… Aug 30, 2018
internals Initial import of code from examples app branch: joshuef/Playground3-… Aug 30, 2018
resources Initial import of code from examples app branch: joshuef/Playground3-… Aug 30, 2018
test Initial import of code from examples app branch: joshuef/Playground3-… Aug 30, 2018
.babelrc chore/config: migrates misc config files, removes cached build files Aug 30, 2018
.eslintignore chore/config: migrates misc config files, removes cached build files Aug 30, 2018
.eslintrc chore/config: migrates misc config files, removes cached build files Aug 30, 2018
.flowconfig chore/config: migrates misc config files, removes cached build files Aug 30, 2018
.gitattributes chore/config: migrates misc config files, removes cached build files Aug 30, 2018
.gitignore chore/config: migrates misc config files, removes cached build files Aug 30, 2018
.stylelintrc chore/config: migrates misc config files, removes cached build files Aug 30, 2018
.travis.yml chore/CI: additionally auto-build for mock routing Sep 3, 2018
CHANGELOG.md chore/dep: upgrade @maidsafe/safe-node-app to v0.10.1 Dec 5, 2018
LICENSE-BSD chore/ci: initial setup Aug 14, 2018
LICENSE-MIT chore/ci: initial setup Aug 14, 2018
README.md fix/dep: upgrades electron to recommended version for security, updat… Aug 31, 2018
appveyor.yml chore/CI: additionally auto-build for mock routing Sep 3, 2018
package.json fix(Deps): Update file-loader, remove babili Jan 8, 2019
post-packaging.js chore/CI: additionally auto-build for mock routing Sep 3, 2018
webpack.config.base.js Initial import of code from examples app branch: joshuef/Playground3-… Aug 30, 2018
webpack.config.eslint.js Initial import of code from examples app branch: joshuef/Playground3-… Aug 30, 2018
webpack.config.main.prod.js fix(Deps): Update file-loader, remove babili Jan 8, 2019
webpack.config.renderer.dev.dll.js Initial import of code from examples app branch: joshuef/Playground3-… Aug 30, 2018
webpack.config.renderer.dev.js Update webpack deps Jan 8, 2019
webpack.config.renderer.prod.js fix(Deps): Update file-loader, remove babili Jan 8, 2019
yarn.lock fix(Deps): Update file-loader, remove babili Jan 8, 2019

README.md

SAFE Hosting Manager

The tutorial app show cases how to create and manage web services for Public ID on SAFE Network. Demonstrates the usage of MutableData API, NFS API, Authentication APIs.

Install

  • Note: requires a node version ^8.0.0 and an npm version ^5.0.0

First, clone the repo via git:

$ git clone https://github.com/maidsafe/safe-web-hosting-manager-electron.git && cd safe-web-hosting-manager-electron

And then install Node.js dependencies.

$ yarn

Set NODE_ENV=dev to use Mock Vault. By deafult it uses Actual Network Or set NODE_ENV=prod to use Actual Network.

Run Dev Mode

$ yarn start

To open application on development environment run yarn dev.

Note: Currently not working in osx.

Authorising against Mock

To simplify the auth process, as web-hosting can't received a response when running in dev mode.

Run the app, and in the main menu, select Simulate Mock Response, and you're good to go.

Alternatively, to run against a mock versio of the browser (after installing in a dev environment), you can trigger 'dev' libs via setting your env to be NODE_ENV=test.

Packaging

To package apps for the local platform:

$ yarn package

Test

yarn test

Run yarn rebuild-test if there is Node Module Mismatch Error while running test, this will build the native modules for Nodejs. To build it back to Electron run yarn rebuild, now you can start the application.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MaidSafe Contributor Agreement, version 1.1 ([CONTRIBUTOR] (CONTRIBUTOR)), shall be dual licensed as above, and you agree to be bound by the terms of the MaidSafe Contributor Agreement, version 1.1.