This repository provides a tool for updating data block locations in the SciCat data catalog after new registrations. The app replaces outdated block locations with the updated ones, ensuring accurate metadata.
- Automated Updates: Replace original data block locations with new ones.
- SciCat Integration: Connects directly to the SciCat API for updates.
- Efficient Workflow: Simplifies and automates location updates.
- Node.js (14+ recommended).
- Access to a SciCat instance with API credentials.
-
Clone the repository:
git clone https://github.com/your-username/scicat-data-block-update.git
cd scicat-data-block-update -
Install dependencies:
npm install
-
Set your SciCat API credentials and configuration in
config.json. -
Run the app to update data block locations:
npm start -
Monitor the console for logs and status messages.
- API Settings: Update
config.jsonwith the following:- SciCat API URL
- Authentication token
src/: Contains the main code for the app.updateBlocks.js: Logic for updating data block locations.config.json: API credentials and configuration.
package.json: Project configuration and dependencies.README.md: Documentation for the repository.
-
Start the app:
npm start -
Test individual updates:
node src/updateBlocks.js
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature -
Commit your changes:
git commit -m "Add your feature" -
Push the branch:
git push origin feature/your-feature -
Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Keep your SciCat data catalog accurate and up-to-date with this app! π¦π