Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@procore-oss/backstage-plugin-announcements-backend
Advanced tools
This package is deprecated and no longer maintained. Please use the @backstage-community/plugin-announcements-backend
package instead.
This is the backend for the Announcements plugin. This plugin provides:
@backstage/plugin-search
plugin@backstage/plugin-permission-backend
pluginAre you looking to install the announcements plugin? See the project's installation guide.
# install dependencies
yarn install
# set .env
cp env.sample .env
source .env
# start the backend
yarn start
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.
The postgres database can be started with docker-compose. Don't forget to copy the env.sample
.
# start the postgres database
docker-compose up -d
# stop the postgres database
docker-compose down -v
The better-sqlite3 database can be seeded with categories and announcements.
With the backend running,
# runs migrations and seeds the database
yarn db:setup
# or run them separately
yarn db:migrations
yarn db:seed
This will create a local.sqlite
file under the db/
directory.
Visit knexjs to learn more about the database migrations and seeding.
# 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;
FAQs
Unknown package
The npm package @procore-oss/backstage-plugin-announcements-backend receives a total of 8,860 weekly downloads. As such, @procore-oss/backstage-plugin-announcements-backend popularity was classified as popular.
We found that @procore-oss/backstage-plugin-announcements-backend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.