name: storjshare
version: 3.1.0
summary: farm data on the Storj network.
description: |
  Earn money by sharing your hard drive space.
  Daemon + CLI for farming data on the Storj network.

grade: stable
confinement: strict

apps:
  storjshare:
    command: storjshare
    plugs: [network, network-bind]

parts:
  storjshare-daemon:
    source: .
    plugin: nodejs
    node-engine: '6.10.0'
    build-packages: [git, python, build-essential]
    stage-packages: [nano]

name: storjshare
version: 3.1.0
summary: farm data on the Storj network.
description: |
  Earn money by sharing your hard drive space.
  Daemon + CLI for farming data on the Storj network.

grade: stable
confinement: strict

apps:
  storjshare:
    command: storjshare
    plugs: [network, network-bind, home]

parts:
  storjshare-daemon:
    source: .
    plugin: nodejs
    node-engine: '6.10.0'
    build-packages: [git, python, build-essential]
    stage-packages: [nano]

Allow snap app to access $HOME directory.
Allow snap app to access $HOME directory.

New configuration will be created under /home/$user/snap/storjshare/...

The plug interface will make sure the app are able to access the config file in user directory else user have to use --devmode when install the snap.