Simple Express server to manage and send Web Push notifications using the VAPID protocol. Will also handle Websockets when that's implemented.
Go to file
Silas bf57f038c7
initial commit
2024-02-05 19:51:08 -05:00
.vscode initial commit 2024-02-05 19:51:08 -05:00
src initial commit 2024-02-05 19:51:08 -05:00
.editorconfig initial commit 2024-02-05 19:51:08 -05:00
.gitignore initial commit 2024-02-05 19:51:08 -05:00
.prettierrc initial commit 2024-02-05 19:51:08 -05:00
.tool-versions initial commit 2024-02-05 19:51:08 -05:00
LICENSE initial commit 2024-02-05 19:51:08 -05:00
README.md initial commit 2024-02-05 19:51:08 -05:00
gen-secrets.js initial commit 2024-02-05 19:51:08 -05:00
package-lock.json initial commit 2024-02-05 19:51:08 -05:00
package.json initial commit 2024-02-05 19:51:08 -05:00
tsconfig.json initial commit 2024-02-05 19:51:08 -05:00

README.md

TypeScript x Express x Node.js x Sqlite

This is a simple Express server to manage Web Push notifications for a website It is configured with Nodemon for automatic server restarts during development and uses ts-node for TypeScript execution.

Prerequisites

If you have asdf installed, run asdf install. Otherwise, install the version of Node specified in .tool-versions.

Installation

Clone the repository to your local machine:

npm install
# generate env config
npm run gen-secrets

Usage

After you've set up your env file, spin up the server

npm run dev

This will start the server at http://localhost:3000 by default. Let your app/site use its API to manage subscriptions and send out Push notifications.

For production, run the following commands:

npm run build
npm start