Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@w3-commons/js-build-resources

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

@w3-commons/js-build-resources

ignore

    1.0.4unpublished

Version published
Maintainers
1
Yearly downloads
156

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.

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc