Install Node.js >= v10.0.0
# Install dependencies
npm i
If you had used a different version of Node.js you may want to clear the installed modules before installing them.
#Clear and Install dependencies
npm ci
To test locally
# Update dependencies if necessary
npm i
npm run build
npm run dev-server
You will want to make sure your localhost:8081 or localhost:8080 is listed in the auth server, Clients, endpoint for both:
- Valid Redirect URIs
- Web Origins
This should already be the case for auth.theboss.io and auth.bossdb.io
# Update dependencies if necessary
npm i
# Compile to JS and minify
npm run build-min
In your browser, go to the S3 bucket where neuroglancer is hosted:
neuroglancer.bossdb.org bucket neuroglancer.theboss.io bucket
Upload the files generated under neuroglancer/dist/min to the bucket making sure to make them public.
After uploading, you will want to go into cloudfront distributions, select the neuroglancer distribution
- Under the Invalidations tab you can create a new invalidation
- For Object Paths add *
This will clear the cached files in cloudfront and make them get new files.
Check the site to make sure everything is in order: neuroglancer.bossdb.org neuroglancer.theboss.io