{"id":19292171,"url":"https://github.com/nasa-pds/s3-browser-cloudfront","last_synced_at":"2026-06-21T14:31:13.704Z","repository":{"id":228449486,"uuid":"733693024","full_name":"NASA-PDS/s3-browser-cloudfront","owner":"NASA-PDS","description":"Web view for files in S3 buckets","archived":false,"fork":false,"pushed_at":"2026-06-11T16:33:56.000Z","size":745,"stargazers_count":1,"open_issues_count":19,"forks_count":0,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2026-06-11T17:07:09.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-19T22:59:30.000Z","updated_at":"2026-06-11T15:08:56.000Z","dependencies_parsed_at":"2024-04-04T18:46:14.408Z","dependency_job_id":"5470e97e-8b70-4335-9726-d899d4fef214","html_url":"https://github.com/NASA-PDS/s3-browser-cloudfront","commit_stats":null,"previous_names":["nasa-pds/s3-directory-listing","nasa-pds/s3-browser-cloudfront"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NASA-PDS/s3-browser-cloudfront","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fs3-browser-cloudfront","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fs3-browser-cloudfront/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fs3-browser-cloudfront/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fs3-browser-cloudfront/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NASA-PDS","download_url":"https://codeload.github.com/NASA-PDS/s3-browser-cloudfront/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fs3-browser-cloudfront/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34613023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-09T22:29:33.369Z","updated_at":"2026-06-21T14:31:13.696Z","avatar_url":"https://github.com/NASA-PDS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDS S3 Web Browser Using Cloudfront\n\n## MacOS\n\nFor one time setup instructions see [setup for macOS](./docs/setup-mac.md)\n\nFor everyday use see [work on macOS](./docs/work-mac.md)\n\n## Getting started\n\n### Node.js\n\nUse the version in [`.nvmrc`](./.nvmrc). Install [Node.js](https://nodejs.org) directly, or use [nvm](https://github.com/nvm-sh/nvm?tab=readme-ov-file#intro) and run `nvm use` in the repo root.\n\n## Local Development\n\n1. Clone this repository and `cd` into it.\n2. Install or select Node.js per [Prerequisites](#prerequisites).\n3. Run `nvm use` to switch to the latest compatible version of node.\n4. Run `npm ci`. If package.json is missing run `npm install` instead. The ci command needs a package.json to work.\n5. Edit dev server port in webpack.config.js to an available port on your localhost. Under plugins -\u003e devServer -\u003e `port: 9002`.\n6. Run `npm run start`.\n7. Open a browser and go to `localhost:9002` or `localhost:\u003cport\u003e`.\n\n## Deployment\n\nThis application is designed to work in AWS. It needs an S3 bucket that holds the source code and a cloudfront to serve it. Any data bucket it is meant to read needs its own cloudfront set up. Terraform is used to create the s3-bucket and the cloudfront.\n\n### Edit configuration for source code build\n\n1. Edit the bucketEndpoints object inside bucketEndpoints.js with the endpoints s3-browser should traverse.\n2. Edit webpack.config.js with the location url at which the app will be deployed. The default is set to /data in other words `https://\u003csite\u003e/data`. Edit `PUBLIC_PATH: '/data/'`, `publicPath: '/data/'`, `index: '/data/index.html'` with your expected path.\n3. Run `npm run build`. This will create the distribution code in the /dist directory. This is what will need to be uploaded to the s3-bucket\n\n### Terraform\n\nThe S3 bucket is managed by terraform. More details here. https://github.com/NASA-PDS/pds-tf-modules/blob/main/terraform/modules/s3/README.md\n\n1. `cd terraform`\n2. There are 3 backends that can be used -dev, -test, -prod. Run `terraform init -backend-config=backend-dev.hcl -lock=false` replacing `backend-dev.hcl` with the the correct environment.\n3. If changing backend after init was already run add -reconfigure. ` terraform init -reconfigure -backend-config=backend-dev.hcl -lock=false` \n4. Update the terraform.tfvars file with the expected values.\n5. `terraform validate`\n6. Plan the changes `terraform plan -var-file=terraform.tfvars -lock=false` review the output to make sure the changes are expected.\n7. Run `terraform apply -var-file=terraform.tfvars -lock=false` to apply the changes.\n8. Login to the AWS Console with your AWS Account. Verify that the s3-bucket was created.\n9. Upload the distribution code in the /dist file from the build step into the s3-bucket.\n10. Run the cloudfront terraform at https://github.com/NASA-PDS/pds-mcp-infra/tree/main/terraform/cloudfront It will create the cloudfront environment and attach a policy to the s3 bucket that allows cloudfront to serve it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Fs3-browser-cloudfront","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasa-pds%2Fs3-browser-cloudfront","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Fs3-browser-cloudfront/lists"}