You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workspaces/announcements/plugins/announcements-backend/README.md
+82-48Lines changed: 82 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,25 @@
3
3
The backend for the Announcements plugin. This plugin provides:
4
4
5
5
- REST APIs for managing announcements, categories, and tags
6
+
- Database model for storing announcements, categories, and tags
6
7
- Integration with the [`@backstage/plugin-search`](https://github.com/backstage/backstage/tree/master/plugins/search) plugin
7
8
- Integration with the [`@backstage/plugin-permission-backend`](https://github.com/backstage/backstage/tree/master/plugins/permission-backend) plugin
8
9
- Integration with the [`@backstage/plugin-events-backend`](https://github.com/backstage/backstage/tree/master/plugins/events-backend) plugin
9
10
- Integration with the [`@backstage/plugin-signals-backend`](https://github.com/backstage/backstage/tree/master/plugins/signals-backend) plugin
10
11
- Integration with the [`@backstage/notifications-backend`](https://github.com/backstage/backstage/tree/master/plugins/notifications-backend) plugin
11
12
- Integration with the [Auditor Service](https://backstage.io/docs/backend-system/core-services/auditor). Audit logging helps to track announcements creation, updates, and deletion.
12
13
14
+
## Table of contents
15
+
16
+
-[Installation](#installation)
17
+
-[API Examples](#api-examples)
18
+
-[Integrations](#integrations)
19
+
-[Local development](#local-development)
20
+
-[Setup](#setup)
21
+
-[Database](#database)
22
+
-[Postgres](#postgres)
23
+
-[Seeding the database](#seeding-the-database)
24
+
13
25
## Installation
14
26
15
27
To install it to your backend package, run the following command:
The announcements plugin integrates with the following Backstage plugins.
67
+
68
+
### Permission
69
+
70
+
View the [permission](../announcements-common/README.md#resources) documentation.
71
+
72
+
### Events
73
+
74
+
View the [events](../announcements-node/docs/events.md) documentation.
75
+
76
+
### Signals
77
+
78
+
View the [signals](../announcements-node/docs/signals.md) documentation.
79
+
80
+
### Notifications
81
+
82
+
Backstage's Notification System enables plugins and services to deliver real-time alerts to users, visible in the UI or via external channels. The announcements plugin can send a notification through the Notifications backend whenever an announcement is created. Announcement notifications are disabled by default and can be enabled via the `sendNotification` option when creating an announcement in the UI.
83
+
84
+
See the notifications [docs](https://backstage.io/docs/notifications/).
85
+
86
+
### Search
87
+
88
+
View the search module's [README](../search-backend-module-announcements/README.md).
89
+
90
+
## Local development
31
91
32
92
This plugin backend can be started in a standalone mode from directly in this
33
93
package with `yarn start`. It is a limited setup that is most convenient when
@@ -41,76 +101,50 @@ If you want to run the entire project, including the frontend, run `yarn start`
41
101
# install dependencies
42
102
yarn install
43
103
44
-
# set .env
45
-
cp env.sample .env
46
-
source .env
47
-
48
-
# start the backend
104
+
# start the backend with in-memory database
49
105
yarn start
50
106
```
51
107
52
108
### Database
53
109
54
-
The plugin includes support for postgres and better-sqlite3 databases. By default, the plugin uses a postgres database via docker-compose. Update the `app-config.yaml` to use the `better-sqlite3` database.
110
+
The plugin defaults to better-sqlite3 in the main `app-config.yaml`. If you want to use postgres, you can via docker-compose. We recommend you copy the `app-config.local.yaml.sample` to `app-config.local.yaml` and update the database configuration.
111
+
112
+
The postgres database can be seeded with categories, tags, and announcements.
55
113
56
114
#### Postgres
57
115
58
-
The postgres database can be started with docker-compose. Don't forget to copy the `env.sample`.
116
+
The postgres database can be started with docker-compose. You will need to copy the `env.sample` to `.env`, the `app-config.local.yaml.sample` to `app-config.local.yaml`.
59
117
60
118
```sh
119
+
# copy the env.sample to .env
120
+
cp env.sample .env
121
+
122
+
# copy the app-config.local.yaml.sample to app-config.local.yaml
Backstage’s Notification System empowers plugins and services to deliver alerts to users and is directly visible in the UI or via external channels. Visit the [docs](https://backstage.io/docs/notifications/) on notifications for more information.
112
-
113
-
The Notification plugin delivers real-time alerting, with backend/frontend components to send and display notifications - including push signals.
114
-
To trigger alerts when a new announcement appears, you can combine these systems: send a notification via the Notifications backend whenever an announcement is created.
115
-
116
-
Announcement notifications are disabled by-default. Notifications can be sent if "sendNotification" option in the UI is enabled.
0 commit comments