example-heroku-clock-js

  •        92

#Heroku Clock Example in Javascript An example of a clock process for heroku in javascript for use with node. ###Notes on Cron Be sure to check out the chon project page for details on how to use it for scheduling.

https://github.com/johnhenry/example-heroku-clock-js

Dependencies:

cron : ^1.0.5
time : ^0.11.0

Tags
Implementation
License
Platform

   




Related Projects

overmind - Process manager for Procfile-based applications and tmux

  •    Go

Overmind is a process manager for Procfile-based applications and tmux. With Overmind, you can easily run several processes from your Procfile in a single terminal. Procfile is a simple format to specify types of processes your application provides (such as web application server, background queue process, front-end builder) and commands to run those processes. It can significantly simplify process management for developers and is used by popular hosting platforms, such as Heroku and Deis. You can learn more about the Procfile format here or here.

Foreman - Manage Procfile-based applications

  •    Ruby

Foreman is a manager for Procfile-based applications. Its aim is to abstract away the details of the Procfile format, and allow you to either run your application directly or export it to some other process management format.

hivemind - Process manager for Procfile-based applications

  •    Go

Hivemind is a process manager for Procfile-based applications. At the moment, it supports Linux, FreeBSD, and macOS. Procfile is a simple format to specify types of processes your application provides (such as web application server, background queue process, front-end builder) and commands to run those processes. It can significantly simplify process management for developers and is used by popular Platforms-as-a-Service, such as Heroku and Deis. You can learn more about the Procfile format here or here.

procodile - 🐊 Run processes in the background (and foreground) on Mac & Linux from a Procfile (for production and/or development environments)

  •    Ruby

Running & deploying Ruby apps to places like Viaduct & Heroku is really easy but running processes on actual servers is less fun. Procodile aims to take some the stress out of running your Ruby/Rails apps and give you some of the useful process management features you get from the takes of the PaaS providers. Procodile is a bit like Foreman but things are designed to run in the background (as well as the foreground if you prefer) and there's a supervisor which keeps an eye on your processes and will respawn them if they die.

heroku-cra-node - How to use create-react-app with a custom Node server on Heroku

  •    Javascript

A minimal example of using a Node backend (server for API, proxy, & routing) with a React frontend. Includes a minimal Node Cluster implementation to parallelize the single-threaded Node process across the available CPU cores.


heroku-buildpack-swift - Heroku build pack for Swift

  •    Shell

This is a Heroku buildpack for Swift apps that are powered by the Swift Package Manager.Check out the Curassow-example-helloworld for a fully working example that can be deployed to Heroku.

herokuish - Utility for emulating Heroku build and runtime tasks in containers

  •    PHP

A command line tool for emulating Heroku build and runtime tasks in containers.Herokuish is made for platform authors. The project consolidates and decouples Heroku compatibility logic (running buildpacks, parsing Procfile) and supporting workflow (importing/exporting slugs) from specific platform images like those in Dokku/Buildstep, Deis, Flynn, etc.

js-stack-from-scratch - 🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.

  •    Javascript

Welcome to my modern JavaScript stack tutorial: JavaScript Stack from Scratch. This is a straight-to-the-point guide to assembling a JavaScript stack. It requires some general programming knowledge, and JavaScript basics. It focuses on wiring tools together and giving you the simplest possible example for each tool. You can see this tutorial as a way to write your own boilerplate from scratch. Since the goal of this tutorial is to assemble various tools, I do not go into details about how these tools work individually. Refer to their documentation or find other tutorials if you want to acquire deeper knowledge in them.

Kronos - Elegant NTP date library in Swift

  •    Swift

Kronos is an NTP client library written in Swift. It supports sub-seconds precision and provides an stable monotonic clock that won't be affected by clock changes. This is an example app that displays the monotonic Clock.now on the left and the system clock (initially out of date) on the right.

node-js-getting-started - Getting Started with Node on Heroku

  •    HTML

A barebones Node.js app using Express 4. This application supports the Getting Started with Node on Heroku article - check it out.

node-cron - Cron for NodeJS.

  •    Javascript

Cron is a tool that allows you to execute something on a schedule. This is typically done using the cron syntax. We allow you to execute a function whenever your scheduled job triggers. We also allow you to execute a job external to the javascript process using child_process. Additionally, this library goes beyond the basic cron syntax and allows you to supply a Date object. This will be used as the trigger for your callback. Cron syntax is still an acceptable CronTime format. Although the Cron patterns supported here extend on the standard Unix format to support seconds digits, leaving it off will default to 0 and match the Unix behavior. Because we can't magically know what you are doing to expose an issue, it is best if you provide a snippet of code. This snippet need not include your secret sauce, but it must replicate the issue you are describing. The issues that get closed without resolution tend to be the ones without code examples. Thanks.

example-multipage-shim - Example RequireJS-based project that has multiple pages that share a common set of modules with shim config

  •    Javascript

This project is different from the standard requirejs/example-multipage because shim config is used. Shimmed modules need their dependencies loaded before they are executed. It is not as robust as normal modules. Additionally, the common.js file has shim config in it. See the js/app/main1.js file for the Backbone and underscore use. The shim config requires shimmed dependencies to be loaded first, before the shimmed script is executed. So instead of using data-main="js/page1" approach as used in example-multipage, this example inlines the requirejs calls in the HTML for the page.

webwords - An example Akka/Scala application on Heroku, created by Typesafe

  •    Scala

An example Akka/Scala application on Heroku, created by Typesafe

heroku-buildpack-scala - Heroku buildpack: Scala

  •    Shell

This is the official Heroku buildpack for Scala apps. It uses sbt 0.11.0+. The buildpack will detect your app as Scala if it has a project/build.properties file and either a .sbt or .scala based build config (for example, a build.sbt file). It vendors a version of sbt into your slug (if you are not using sbt-native-packager, it also includes your popluated .ivy/cache in the slug). The .ivy2 directory will be cached between builds to allow for faster build times.

acme_bank - An example ☂ project

  •    Elixir

See README of each application to learn more about what it does. Most apps contain a "wishlist" of features that might makes sense for that app. The idea is not to implement these features but to show how each particular app can grow in complexity and thus how important it is to keep it separate. Acme Bank can be deployed to Heroku, see the Heroku Deploy button at the beginning of the README. MasterProxy is used as the main entry point to the application: it binds to the port exposed by Heroku, and forwards requests to web apps.

heroku-repo - Plugin for heroku CLI that can manipulate the repo

  •    Javascript

This will download the applications repo as a tarball. This will run a git gc --aggressive against the applications repo. This is done inside a run process on the application.

node-js-sample - A barebones Node.js app using the Express framework.

  •    Javascript

A barebones Node.js app using Express 4. Make sure you have Node.js and the Heroku Toolbelt installed.

KVOController - Simple, modern, thread-safe key-value observing for iOS and OS X.

  •    Objective-C

For more information on KVO, see Apple's Introduction to Key-Value Observing.While simple, the above example is complete. A clock view creates a KVO controller to observe the clock date property. A block callback is used to handle initial and change notification. Unobservation happens implicitly on controller deallocation, since a strong reference to the KVOController is kept.