Socket
Socket
Sign inDemoInstall

@w3-commons/js-build-resources

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@w3-commons/js-build-resources

ignore


Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

w3-profile/settings-service

Created On: August 11, 2020
w3 Notification Team | w3 | Digital Workplace Engineering | CIO | Finance and Operations | IBM

Settings Service Information

settings-service stores w3 user settings information. Any w3 app can onboard with settings-service to set up a namespace for their app and use the API to store and retrieve unique settings for their application using the endpoints described in the Swagger documentation below.

Swagger Endpoint Documentation

Run Locally

Use npm run local to run the service locally

Cassandra DB in Docker

Start Cassandra DB for the first time

Create Cassandra DB Docker image for w3notifications:

cd db/cassandra  
docker build -t w3profile_settings_service_cassandra:latest .

Start Cassandra DB container:

docker run -d -p 9042:9042 --name w3profile_settings_service_cassandra w3profile_settings_service_cassandra:latest

Wait for a few seconds for the container to start and create schema:

docker exec -it w3profile_settings_service_cassandra /bin/sh -C "/w3settings_schema/createkeyspace.dev.sh"  

Note: If you run the command before container fully starts you will see 'Connection refused' error. Just wait a little longer and run the command again.

Subsequent starts of cassandra DB

Start existing Cassandra DB container:

docker start w3profile_settings_service_cassandra
Note:

New schema files will be added whenever there is a change in the DB schema. In that case remove old container:

docker rm w3profile_settings_service_cassandra

and follow procedure mentioned in Start Cassandra DB for the first time.

FAQs

Last updated on 20 Apr 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc