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

accelerated.api.ci

v0.2.13

Published

Basic continuous integration for Accelerated apps.

Downloads

17

Readme

About

This provides a super-easy and basic continuous integration service for Accelerated apps. In particular, this provides clear instructions for GitHub and BitBucket integrations.

First BitBucket, GitHub Coming Next

Right now this module is only for Bitbucket. I've had a number of projects via Bitbucket that I'm getting this module up, but GitHub will quickly be up next.

Limited to Node's Forever

Right now, this uses the NPM package forever to start and stop your application service.

System

Whenever any changes are made to your repository, and they're pushed to your remote origin, your repo host will fire an event on its custom-defined webhooks. Those webhooks will land at this module, thereby triggering your code to update and respawn.

Installation

You'll need to generate a private key file and a public key file, and provide them with your project, along with uploading them onto your repsitory host (GitHub or Bitbucket). Besides that, incorporate some of the variables as you see fit into you env.json. More detailed explanations will be coming soon:

{
	"ENV_DEFAULT": {	
		"EXPRESS_PORT": 8080,
		"CI_GIT_SSH_URL": "[email protected]:johndoe/test.git",
		"CI_GIT_SSH_PRIVATE_KEY_PATH": "key",
		"CI_GIT_SSH_PUBLIC_KEY_PATH": "key.pub",
		"CI_RUN_DELAY": 500,
		"CI_RUN_DELAY_RANDOMIZED": false,
		"CI_RUN_DELAY_MAX": 5000,
		"CI_PULL_REPO_FULLNAME": "johndoe/example",
		"CI_INSTALL_ACTOR_USERNAME": "johndoe",
		"CI_RESTART_ACTOR_USERNAME": "johndoe",
		"CI_NETWORK_URL1": "",
		"CI_NETWORK_URL2": "",
		"CI_NETWORK_URL3": ""
	},
	"ENV_OVERRIDE": "LOCAL",
	"ENV_OVERRIDES": {
		"LIVE": {},
		"TEST": {},
		"LOCAL": {
			"EXPRESS_PORT": 8080
		}
	}
}

Purpose

Continuous integration has its merits, but really shines when you have multiple server instances behind a load balancer. When you make one change to your code, it gets to be really tedious to SSH into each linux box and pull the latest repo changes, and then restart your application. That's where CI really helps take this huge DevOps pain out of your workflow, allowing for quicker and better changes to your code, no matter your application is scaled.

Usage

Simply require this module as you would any other Accelerated module, like this:

var api = require('accelerated.api');
var apiCi = require('accelerated.api.ci').use();

api.useModels([
	[apiCi.key, apiCi.model]
]);

api.useRoutes([
	[apiCi.key, apiCi.route]
]);

api.run()