0.10.4 • Published 2 months 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
3 months ago
0.10.2
3 months ago
0.10.3
3 months ago
0.10.4
2 months ago
0.9.3
4 months ago
0.9.0
5 months ago
0.8.0
5 months ago
0.9.2
4 months ago
0.7.0
5 months ago
0.6.4
7 months ago
0.6.3
8 months ago
0.6.2
8 months ago
0.6.1
8 months ago
0.6.0
9 months ago
0.5.5
10 months ago
0.5.4
11 months ago
0.5.3
11 months ago
0.5.2
11 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