This repository is a sandbox playground for developing and testing an NPM package to query the SciCat science data catalog. It provides tools to experiment with querying APIs and managing responses.
- NPM Package Development: Focus on building a reusable SciCat query package.
- API Querying: Perform queries against the SciCat API.
- Sandbox Environment: Experiment with features before finalizing the package.
- Node.js (14+ recommended).
- Access to a SciCat instance with API credentials.
-
Clone the repository:
git clone https://github.com/your-username/scicat-query-playground.git
cd scicat-query-playground -
Install dependencies:
npm install
-
Set your SciCat API credentials in
config.json. -
Test queries with the playground script:
npm start -
Modify the code in
src/to add or refine features.
- API Settings: Update
config.jsonwith the following details:- API URL
- Authentication token
src/: Contains the main code for the NPM package.query.js: Script for performing API queries.utils.js: Utility functions for handling responses.
config.json: API credentials and settings.package.json: Project configuration and dependencies.README.md: Documentation for the repository.
-
Start the playground:
npm start -
Test queries interactively:
node src/query.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.
Experiment and refine your SciCat querying workflows with this NPM package playground! π οΈπ¦