Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

journeyapps

Package Overview
Dependencies
Maintainers
2
Versions
586
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

journeyapps

Journey JS library

  • 2.26.1
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Journey JS

Journey JavaScript library and database accessor

Simple DB Usage

  1. Get the module from yarn

    yarn add journeyapps

  2. import the helper DB (my_script.js)

    const { Database } = require("journeyapps");
    async function run() {
        const db = await Database.instance({ baseUrl: 'http://test.test/api/v4/testaccount', token: process.env.API_TOKEN });
    
        // use the api as per documentation (https://docs.journeyapps.com/docs/app-database#section-usage)
        let user = await db.user.first();
        console.log(user.name);
    }
    run();
    
  3. run the program via node

    API_TOKEN=<some_token> node my_script.js

Code Installation

  1. clone and run yarn in the root & tools folders
  2. run tsc
  3. run webpack or ./node_modules/.bin/webpack to build the library
  4. run gulp or ./node_modules/.bin/gulp to test everything

Usage

See https://github.com/journeyapps/journey-ionic-sample for a sample project.

Development

See DEVELOPMENT.md for instructions on building and publishing journey-js.

Keywords

FAQs

Package last updated on 05 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc