npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

foundation-apps-template

v1.2.0

Published

App Name: Sample1

Downloads

20

Readme

The Predix Mobile Sample App

##app.json App Name: Sample1

Version: 1.0

##webapp.json Web-App Name: sample-webapp

Version: 0.0.1

Background

This is the sample app for Predix Mobile.

"If you think about it like a sample of a sandwich, it contains everything in that sandwich, but it's not the whole sandwich. You wouldn't sell it to someone, but it's a taste of everything." - Matt Hoffman, Predix Mobile Developer (feat. Jon Henderson, Predix Mobile Developer)

Currently our sandwich is pretty bland, we only use the PMAPI to access test data. In the future, the sample app will be more of a Dagwood sandwich which includes a taste of all of the components that you may want in a Predix Mobile application.

About the app

The sample app is geared towards a field service engineer who is assigned a list of issues. There is a dashboard for viewing the number of issues with differing levels of severity. Tapping on one of the severities shows you a list of issues with that severity. Tapping on one of the issues shows you details about that issue. The sample app currently teaches you how to use the Predix Mobile API in the context of a web application built on top of our app contiainer.

Tech Stack

The sample app's tech stack is based on Foundation for Apps, which uses HTML5, Javascript, CSS3, AngularJS, and Sass. If you are writing your web application with Foundation for Apps, or at least AngularJS, then this code will help you with app navigation and the architecture for building mobile web apps. Foundation for Apps, AngularJS, or Sass are not required to write apps on Predix Mobile.

Running the Predix Mobile Sample App

Before You Begin:

This is the general setup for all Mobile WebApp Examples. If you have NOT worked through the getting started documentation, please use these docs for running the sample app.

Setup

This is the general setup for all Mobile WebApp Examples, but is HIGHLY recommended that you follow the getting started documentation when installing this app.

  1. Create an empty directory and setup a workspace using the PM Tool.

    $ pm workspace --create
  2. Clone the repo under the webapps folder in your workspace.

    $ cd <your_workspace>/webapps
    $ git clone https://github.com/PredixDev/MobileExample-WebApp-Sample.git
  3. Install the app's dependencies

    $ cd <your_workspace>/webapps/MobileExample-WebApp-Sample
    $ npm install
  4. Log into the PM Tool

    $ pm api <your_predix_mobile_server_address>
    $ pm auth <your_username> <your_password>
  5. Build and Publish the Sample App

    $ cd <your_workspace>/webapps/MobileExample-WebApp-Sample
    $ npm run publish
  6. Within your pm-apps folder create a folder called SampleApp.

    $ mkdir <your_workspace>/pm-apps/SampleApp
  7. In the SampleApp folder create your app.json file. The contents should be as follows:

    {
        "name": "Sample1",
        "version": "1.0",
        "starter": "sample-webapp",
        "dependencies": {
        "sample-webapp": "0.0.1"
        }
    }
  8. Load the sample data

    $ cd <your_workspace>
    $ pm import --data ./webapps/MobileExample-WebApp-Sample/test/data/data.json --app ./pm-apps/SampleApp/app.json
  9. Define the Sample App

    $ cd <your_workspace>/pm-apps/SampleApp/
    $ pm define
  10. Update the info.plist for the Mobile App Container in Xcode to match the app name and version in the app.json and run.