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

modeify

v1.3.0

Published

Web TDM

Downloads

22

Readme

Modeify

Build status Test coverage Code Climate Dependency Status

Modeify is an open-source platform for multimodal commuter engagement. Utilizing the latest advances in open transportation technology, Modeify uses personalized outreach to promote commuter behavior change and improve outcomes for travelers, employers, and transportation demand management (TDM) providers.

Development of Modeify is supported by the Mobility Lab Transit Tech Initiative.

Development quick start

Clone to your local directory to begin.

$ git clone [email protected]:conveyal/modeify.git
$ cd modeify

Requirements

Configuration

An example configuration can be found in configurations/default. Copy that directory and edit the settings.yml and env.yml files. Add your

  1. MONGODB_URL to env.yml.
  2. Mapbox access_token and map_id to settings.yml.
  3. Mapzen Search api_key to settings.yml.
  4. R5 url endpoint to settings.yml.
  5. Auth0 AUTH0_CLIENT_ID, AUTH0_DOMAIN, AUTH0_NON_INTERACTIVE_CLIENT_ID, AUTH0_NON_INTERACTIVE_CLIENT_SECRET, and AUTH0_SIGNING_CERTIFICATE to env.yml.
  6. Auth0 logo and primary color in lock > theme in settings.yml.

If you have configuration specific images run ./bin/set-deployment ../path/to/your/configuration/directory to use them.

Running

If Modeify is configured correctly (above) then you will be able to run with npm start. This will

  1. Install all of the dependencies.
  2. Run the node server with automatic restarts using nodemon. It watches for changes in the /lib directory.
  3. Build the client/planner-app and client/manager-app and rebuilds on changes.

Once it starts, you will be able to find the planner at http://localhost:5000 and the manager at http://localhost:5000/manager.

To point it at a different configuration directory run:

$ npm start -- ../path/to/configuration/directory

Deployment

This repository is setup to deploy automatically to Heroku. All commits to the dev branch will be deployed to staging and all commits to master will be deployed to production. Pull requests will create review apps that run on Heroku Hobby Dynos. The review apps will build their client side files locally while the staging and production apps retrieve their assets from AWS and they need to be deployed manually.

Heroku will run the node server with

$ node lib/server.js

Heroku Environment Variables

All variables in env.yml must be set manually as Heroku environment variables. They can be set via the command line with:

$ heroku config:set VARIABLE_NAME=value --app heroku-app-name

The settings.yml is retrieved from Heroku apps via the MODEIFY_CONFIG environment variable. To set that value you can run the bin/push-settings-to-heroku script:

$ ./bin/push-settings-to-heroku ../path/to/configuration/settings.yml heroku-app-name

AWS Assets Deployment

Deployment is done with mastarm. See mastarm#deploy for more info on configuration.

$ mastarm deploy --minify --env production --config ../configurations/modeify