0.10.4 • Published 1 month ago
@procore-oss/backstage-plugin-announcements-backend v0.10.4
backstage-plugin-announcements-backend
This is the backend for the Announcements plugin. This plugin provides:
- REST APIs for managing announcements and categories
- Integration with the
@backstage/plugin-search
plugin - Integration with the
@backstage/plugin-permission-backend
plugin
Installation
Are you looking to install the announcements plugin? See the project's installation guide.
Local development
Setup
# install dependencies
yarn install
# start the backend
yarn start
Database
The plugin includes a better-sqlite3 database seeded with categories and announcements.
With the backend running,
# runs migrations and seeds the database
yarn db:setup
This will create a local.sqlite
file under the db/
directory.
Other commands
# run migrations
yarn db:migrations
# seed the database
yarn db:seed
Visit knexjs to learn more about the database migrations and seeding.
API Examples
# get all announcements
curl http://localhost:7007/api/announcements/announcements
# get all categories
curl http://localhost:7007/api/categories
// get all announcements
const response = await fetch(
'http://localhost:7007/api/announcements/announcements',
);
const data = await response.json();
return data;
0.10.1
2 months ago
0.10.2
2 months ago
0.10.3
2 months ago
0.10.4
1 month ago
0.9.3
3 months ago
0.9.0
3 months ago
0.8.0
4 months ago
0.9.2
3 months ago
0.7.0
4 months ago
0.6.4
6 months ago
0.6.3
6 months ago
0.6.2
6 months ago
0.6.1
7 months ago
0.6.0
8 months ago
0.5.5
9 months ago
0.5.4
9 months ago
0.5.3
10 months ago
0.5.2
10 months ago
0.5.1
1 year ago
0.5.0
1 year ago
0.4.0
1 year ago
0.3.5
1 year ago
0.3.4
1 year ago
0.3.3
1 year ago
0.3.2
1 year ago
0.3.1
1 year ago
0.3.0
1 year ago