CfA Spectrum Lab at https://waps.cfa.harvard.edu/microobservatory/spectrum/
The development preview deployment is at https://smithsonian.github.io/si_website_spectrum_lab .
- Node 22.9.0 or similar
If you need several Node versions to coexist on your machine, this project has a .tool-versions
for use with asdf.
- Prettier VS Code extension (recommended)
- Vue VS Code extension (recommended)
- Clone the repo.
- Inside the clone:
npm install
npm run dev
The app is now running at http://localhost:5173/ by default. Code changes will take effect immediately.
- Make changes to the metadata Google Sheet from the Smithsonian DataLabs Google Drive. It's called "Metadata Entry".
- Download it as a CSV. File -> Download -> Comma Separated Values (.csv)
- Put it next to
src/metadata.json
and name itmetadata.csv
. - Run this, from the repository root. If it worked, you'll see a bunch of Prettier log messages.
tools/import_metadata
npm run format
to apply code style. This is not necessary if your IDE formats with Prettier on save.npm run build
to verify build success. TypeScript errors may appear here that do not appear in development mode.- (Optional)
npm run preview
after building. This will serve the build output on 4173, so you can verify it looks right. This is overkill unless you're making changes to the build process.
- (Optional)
- Commit to the
develop
branch. - Push the
develop
branch. After a few minutes your changes will appear at https://smithsonian.github.io/si_website_spectrum_lab .
- Deploy to GitHub first.
- Ask Vanessa to use her
deploy_scripts
repo to pull and deploy thedevelop
branch.