Skip to content

koa server to handle push notification registration and sending messages

Notifications You must be signed in to change notification settings

alextanhongpin/node-web-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-web-push

A simple Push Notification Server written in koa.

Setup

foreman is used to setup the environment variables and start the server.

To install foreman globally:

# With yarn
$ yarn global add foreman

# With NPM
$ npm i -g foreman

To install other dependencies:

# With yarn
$ yarn install

# With NPM
$ npm i

Create a .env file which contains the following:

MAILTO=mailto:youremailaddress@mail.com

The .env will be automatically loaded when running the server. We skip the .env file from being committed to Github by adding it in the .gitignore file.

Run

Start the server with the following comand:

$ nf start

nf stands for node-foreman. The server should start at port 5000.

About

koa server to handle push notification registration and sending messages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published