Skip to content

pbojinov/nodeifications

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodeifications

Simple cross platform desktop notifications for node-webkit apps, inspired by Chrome Notifications.

Nodeifications Intro Banner

API Documentation on the wiki

Getting Started

  1. Include the javascript nodeifications.js in your application

  2. Include the HTML template nodeifications.html in your application

  3. Create a notification using the API: DEA.notifications.create(options, callback);

Running the demo app

  1. Clone this project

     git clone [email protected]:pbojinov/nodeifications.git
    
  2. Run npm install

  3. Make the nw zip file by running the default gulp task

     gulp
    
  4. cd into the project /src

  5. Run the nw application

     nodewebkit nodeifications.nw
    

Building for Production

From the root of the project:

npm install

gulp build

Then run the executable/app from inside /webkitbuilds

Application Flow

  1. Call the API to create a new notification.

  2. nodeifications.js creates the HTML template using the user provided content

  3. nodeifications.js created the notification and appends the template to the created notification window.

  4. nodeifications.html is simply the container for the content. It handles closing itself and sending off interaction events back to the parent who initiated the notification.

Notes

Notification Types

Text

Text Notification

Image

Image Notification

About

Simple cross platform desktop notifications for node-webkit

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 72.9%
  • JavaScript 27.1%