test-safe-node-app v0.4.1
safe_app_nodejs
A safe_app library for Node.js.
Maintainer: Krishna Kumar (krishna.kumar@maidsafe.net)
| Linux/OS X | Windows | Coverage Status |
|---|---|---|
API Documentation
The documentation for the safe_app Node.js API is available at http://docs.maidsafe.net/safe_app_nodejs/.
Development
Prerequisites
Clone this GitHub repository:
git clone https://github.com/maidsafe/safe_app_nodejs.gitInstall 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_clientlibraries which use theMockVaultfile rather than connecting to the SAFE Network.
Testing
To run the tests locally, make sure you installed the safe_client libraries 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".
Further Help
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.
License
Licensed under either of
- the MaidSafe.net Commercial License, version 1.0 or later (LICENSE)
- the General Public License (GPL), version 3 (COPYING or http://www.gnu.org/licenses/gpl-3.0.en.html)
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), shall be dual licensed as above, and you agree to be bound by the terms of the MaidSafe Contributor Agreement, version 1.1.
8 years ago