2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00
2024-02-05 19:51:08 -05:00

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
Description
Simple Express server to manage and send Web Push notifications using the VAPID protocol. Will also handle Websockets when that's implemented.
Readme 63 KiB
Languages
TypeScript 69.3%
JavaScript 30.7%