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

generator-dmnapps

v0.0.5

Published

Yeoman generator for apps at The Dallas Morning News

Downloads

11

Readme

generator-dmnapps

A Yeoman generator for DMN-flavored node apps.

Setting up

Install dependencies:

$ npm install -g yo
$ npm install -g gulp
$ npm install -g nodemon
$ npm install -g shelljs
$ npm install -g generator-dmnapps

Also install ImageMagick for rendering images.

Create a clean directory for your app:

mkdir your-app-directory
cd your-app-directory

Finally, initiate the generator in your app directory.

yo dmnapps

Important: Pay special attention when prompted to enter the sub- the project will live at on the server. It is not easily changed after being set.

The generator will set up your working directory, install dependencies, copy template files and scripts, start a nodemon server and open your browser.

Developing

This generator use gulp to watch your directories for changes, compile scss files and automatically reload your browser.

To start your server:

$ gulp

See the dmninteractives wiki for information on working with static files and HTML templates.

The behavior of the app is similar for static files, except files are rendered directly into the public folder, rather than to a preview folder.

HTML templates are not rendered into static pages, rather served via the app.

Sub-URI

The generator will setup your app to serve from the sub-URI you specified. This is important to remember when navigating routes. For example, a route at /employees will be served at localhost:4000/my-project-name/employees.

Deploying your app

There are several gulp tasks to help deploy, serve and take down your app from our servers using git and github.

First, get a developer to setup a directory on the test and production servers for your project. She will clone the project to var/www/ and create an .env file with database and other private credentials.

Available gulp tasks are separated into three categories:

  • deploy pushes code to the server
  • serve registers the app with the nginx web server, making your app public
  • pull de-registers the app with nginx, removing your app from any public URL

Each of these are combined with a suffix to be run on either the test or production server. For example:

gulp deploy-test will push code to the test server.

gulp serve-prod will make you app public on our apps.dallasnews.com production server.

The available deploy tasks are:

  • gulp deploy-test
  • gulp deploy-prod
  • gulp serve-test
  • gulp serve-prod
  • gulp pull-test
  • gulp pull-prod

Important: Before running any of these commands, make sure you've committed the latest changes to your app and pushed them to github.

License

MIT