everynyan-notification-service

command module
v0.0.0-...-b54d516 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 30 Imported by: 0

README

everynyan-notification-service

This is the notifications service for everynyan which is resposible for sending in-app and push notifications to users.

It is currently under development.

Setup Development Environment
  1. Clone the repository.

  2. Create a .env file.

SECRET_KEY=
SALT=
API_KEY=

VAPID_PRIVATE_KEY=
VAPID_PUBLIC_KEY=

The first three fields should be exactly same as those setup for the nextjs website.

The API_KEY field corresponds to the NOTIFICATIONS_API_KEY env var for the nextjs website.

VAPID credentials can be obtained by running go build. The server will panic that these env vars are not set and print a set of them, the VAPID private and public key in order (private first, public second).

VAPID_PUBLIC_KEY corresponds to the NEXT_PUBLIC_VAPID_PUBLIC_KEY for the nextjs website.

Set those and then run the server again.

go build

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL