This repository contains a service responsible for handling notifications.
- src
|- controllers // maps between routes to services
|- database // configuration, migrations, and queries
|- routes // endpoint definitions
|- services // business logic
- Install npm packages.
npm install
-
Create database. See the PostgreSQL Creating a Database tutorial.
-
Configure environment variables, by copying
.env.template
to.env
and replacing the example values. -
Start the project.
npm start
- Verify it is running and configured correctly:
curl http://localhost:3000/api/health
No inputs.
Returns a health check.
status
: eitheravailable
orunavailable
.message
: a more detailed explanation about the health status.
toUserId
: Id of the user the notification is for.notificationType
: Type of the notification being saved.
notificationId
: Id of the notification that got created.
link: DESIGN.md
Contributors to this repository agree to adhere to the Contributor Covenant Code of Conduct. To report violations, get in touch with engineers@permanent.org.
Found a vulnerability? Report this and any other security concerns to engineers@permanent.org.
This code is free software licensed as AGPLv3, or at your option, any final, later version published by the Free Software Foundation.