Skip to content

Latest commit

 

History

471 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skyviewer Client

🌟 A Note to External Contributors 🌟

Please read the CONTRIBUTING.md prior to opening a PR.

Getting Started

First, get the node stuff you need:

yarn

Create .env.local file in the project root, copy the contents of .example.env and uncomment the API URLs to use a local skyviewer-api instance

Then run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Local Development with Embargoed HiPS Data

By default, embargoed survey tiles (e.g. sv225p11) are served from a private GCS bucket (gs://skyviewer-comcam) via the authproxy in the cluster. To access these locally you need a GCP service account key.

One-time setup

  1. Get the key file: ask a team admin to generate a key for edc-dev-skyviewer@skyviewer.iam.gserviceaccount.com:

    gcloud iam service-accounts keys create skyviewer-dev-sa-key.json \
      --iam-account=edc-dev-skyviewer@skyviewer.iam.gserviceaccount.com \
      --project=skyviewer

    Place skyviewer-dev-sa-key.json in the repo root. Never commit it. It is already covered by .gitignore (*-sa-key.json).

  2. Start the app via Docker Compose: the docker-compose.yml mounts the key and sets GOOGLE_APPLICATION_CREDENTIALS automatically:

    docker-compose up

    The client is available at http://localhost:3000.

  3. Verify: navigate to the Explorer page and confirm that sv225p11/color_gri survey tiles load without 403/404 errors.

Tip: the survey properties file (RA/Dec starting coordinates) is at https://storage.googleapis.com/skyviewer-comcam/hips-data/sv225p11/color_gri/properties

Security: this key is for local dev only. Rotate/revoke it once a permanent solution (ADC / Workload Identity Federation) is in place.

Development

Lint your code:

yarn lint

Fix your code styles:

yarn fix

Build

yarn bs

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages