{"id":19292174,"url":"https://github.com/nasa-pds/doi-ui","last_synced_at":"2025-04-22T06:32:04.079Z","repository":{"id":38860177,"uuid":"296461390","full_name":"NASA-PDS/doi-ui","owner":"NASA-PDS","description":"The web interface for the PDS DOI Service providing the ability management PDS archive DOIs. See the DOI Service for more details on the available capabilities. https://nasa-pds.github.io/doi-service/","archived":false,"fork":false,"pushed_at":"2024-12-10T20:01:33.000Z","size":6930,"stargazers_count":0,"open_issues_count":23,"forks_count":4,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-01T20:31:50.237Z","etag":null,"topics":["doi","nasa","nasa-pds","pds"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NASA-PDS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-17T23:07:37.000Z","updated_at":"2024-12-10T20:01:37.000Z","dependencies_parsed_at":"2023-02-10T19:15:17.099Z","dependency_job_id":"cb9949ec-8343-441b-8e67-e602fed2409e","html_url":"https://github.com/NASA-PDS/doi-ui","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fdoi-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fdoi-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fdoi-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fdoi-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NASA-PDS","download_url":"https://codeload.github.com/NASA-PDS/doi-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250183291,"owners_count":21388687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["doi","nasa","nasa-pds","pds"],"created_at":"2024-11-09T22:29:34.112Z","updated_at":"2025-04-22T06:32:03.713Z","avatar_url":"https://github.com/NASA-PDS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pds-doi-ui\nFront-end interface for pds-doi-service\n\nAn example for the reservation excel input file can be found at https://pds-engineering.jpl.nasa.gov/user/login?destination=node/691\n\n## Pre-requisites\n\n### Install the pds-doi-service:\n\n```\npip install pds-doi-service\npds-doi-api\n```\n\nSee https://nasa-pds.github.io/doi-service/ for details\n\n\n### Node Installation\n\nThe doi-ui app relies on a specific version of [NodeJS](https://nodejs.org/en). Ensure the NodeJS version specified in the `.nvmrc` file, located at the root of the repository is installed.\n\nWe recommend the use of the [Node Version Manager (nvm)](https://github.com/nvm-sh/nvm) to easily facilitate the installation and switching between node versions. After following the `nvm` installation instructions and navigating to the location this repo is cloned on your machine, you can use the following commands to manage the version of node used for this project:\n\n#### Install the node version specified in .nvmrc if it isn't already installed\n\n    nvm install\n\n#### Switch to the node version specified in .nvmrc for all commands in the current shell window\n\n    nvm use\n\n## To Run And Build Locally\n\n### Run `npm install` \n\nThis will install all necessary dependencies.\n\n### Change API Locations In The Config File\n\nThe config file is located at: `public/config.js` It contains the necessary HTTP request URLs for the application to function correctly. These must be changed to point to your deployed backend server.\n\n### Update the Authentication Related Configurations \n\nYou can set these configurations also in the `public/config.js`. Make sure to use correct URL paths to match with your environment. You may check with the system admins to get the Amazon Cognito related values.\n\n```js\nwindow['getGlobalConfig'] = {\n    api: 'http://localhost:8080/PDS_APIs/pds_doi_api/0.2/',\n    oauth_client_id: '\u003cCLIENT ID OF COGNITO APP CLIENT\u003e',\n    oauth_redirect_uri: 'http://localhost:3000',\n    oauth_logout_endpoint: 'https://\u003cCOGNITO DOMAIN NAME\u003e.auth.us-west-2.amazoncognito.com/logout',\n    oauth_provider_url: 'https://\u003cCOGNITO DOMAIN NAME\u003e.auth.us-west-2.amazoncognito.com/oauth2',\n    app_viewer_group_name: 'PDS_Viewer',\n    app_admin_group_name: 'PDS_Admin',\n}\n```\n\n### Run `npm start`\n\nRuns the app in development mode.\u003cbr /\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\n### Run `npm run build`\n\nBuilds the app into deployable files in the `/build` directory.\nThese files can be put into any server to run the app.\n\n#### Create a release\n\n    git tag \u003cversion\u003e\n    git push --tags\n    npm run build\n    mv build pds-doi-ui-\u003cversion\u003e\n    zip -r pds-doi-ui.zip pds-doi-ui-\u003cversion\u003e\n\nUpload the zip file in the release of the tag in github\n\n    \n\n## For Administrator\n\n### Deploying A Stable Release\n\n#### Clone Build Files\n\n```\ngit clone https://github.com/NASA-PDS/pds-doi-ui.git\ncd pds-doi-ui\ngit checkout \u003cTAG VERSION\u003e\nnpm install -g serve\nserve -s build\n```\n\n#### Run from build archive\n\nFrom the github release page https://github.com/NASA-PDS/pds-doi-ui/releases/\n\nSelect the latest version and download the zip file in assets `pds-doi-ui.zip`\n\nUnzip and start a standalone server\n\n```\nserve -s pds-doi-ui\n```\n\nThe unzipped directory can also be configured to be published by an **apache** or **nginx** server.\n\n**Troubleshooting:** a serve command is also available in anaconda, be careful not to use it instead of the npm serve.\n\n### SSH Tunnel to DOI Service\n\n```\nssh -L 8085:localhost:8080 \u003cmachine\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Fdoi-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasa-pds%2Fdoi-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Fdoi-ui/lists"}