The Data Space Connector is an open source project aimed to facilitate the onboarding and participantion of organisations in the data space. It is built with simplicity in mind and offers the necessary functionalities for organisations to communicate with the core components of the data space such as Catalogue for resources, offerings and data space use cases management, Contract for negotiation and contract verification and Consent for the management of consent driven data exchanges.
Visit this repository's wiki to find documentation related to the PDC.
You can launch the data space connector with docker and docker compose by using the following command at the root of the project.
docker compose build && docker compose up -d
or
docker compose up -d
The docker compose file will launch the app and a mongodb container.
Using your own mongodb database is possible by updating the following variable in your .env
MONGO_URI=mongodb://mongodb:27017/dataspace-connector
If you run into issues restarting docker-compose, try rebuilding and restarting the containers with
sudolike so:sudo docker-compose up --build
git clone https://github.com/Prometheus-X-association/dataspace-connector.git
npm i -g pnpm # If pnpm is not installed
pnpm i
cp .env.sample .env
# Copy the config.sample.json to config.${NODE_ENV}.json matching your NODE_ENV variable
#For production
cp src/config.sample.json src/config.production.json
For production deployment, please set your NODE_ENV variable to production.
The Data Space Connector uses MongoDB as its database. You can either use a local MongoDB instance or a cloud-based MongoDB service. Make sure to update the MONGO_URI variable in your .env file with the appropriate connection string for your MongoDB instance.
The MongoDB instance is created with a database named dataspace-connector and the collections are created automatically when the application is launched for the first time.
A user with read and write permissions is created with credentials.
For security reasons, please change the default credentials in the connection string in your
.envfile and inmongo_init.jsbefore deploying the application to production.
The MongoDB container is initialized with an admin user using the following environment variables in your .env file:
MONGO_INITDB_ROOT_USERNAME=your_admin_username
MONGO_INITDB_ROOT_PASSWORD=your_admin_password
Contributions to the Prometheus-X Dataspace Connector are welcome! If you would like to contribute, please follow these steps:
Please ensure that your contributions align with the project's coding standards, have proper test coverage, and include necessary documentation or updates to existing documentation.
The Prometheus-X Dataspace Connector is released under the MIT License. You are free to use, modify, and distribute the software as per the terms specified in the license.
If you encounter any issues or have questions regarding the Prometheus-X Data Space Connector, feel free to open an issue on the GitHub repository. The project maintainers and community members will be happy to assist you.