A safe_app library for Node.js.
Maintainer: Gabriel Viganotti (gabriel.viganotti@maidsafe.net)
| Linux/OS X | Windows | Coverage Status |
|---|---|---|
The documentation for the safe_app Node.js API is available at http://docs.maidsafe.net/safe_app_nodejs/.
-
Prerequisites
-
Clone this GitHub repository:
git clone https://github.com/maidsafe/safe_app_nodejs.git
-
Install the dependencies:
cd safe_app_nodejs yarnIf you are working on a development environment, you can run
NODE_ENV=dev yarninstead in order to get thesafe_applibrary which uses theMockVaultfile rather than connecting to the actual SAFE Network.
To run the tests locally, make sure you installed the safe_app library with NODE_ENV=dev yarn, then you can run them by executing yarn test.
Note: If you are compiling your own safe_app library for testing purposes, and if you want to be able to run the tests, make sure to include testing in your build features when compiling safe_app in safe_client_libs, i.e. cargo build --release --features "use-mock-routing testing".
You can discuss development-related questions on the SAFE Dev Forum. Here's a good post to get started: How to develop for the SAFE Network.
This SAFE Network library is dual-licensed under
- the Modified BSD (LICENSE-BSD) or
- the MIT license (LICENSE-MIT)
at your option.
Copyrights in the SAFE Network are retained by their contributors. No copyright assignment is required to contribute to this project.