Skip to content

bradtaniguchi/chrome-neo-plus

Repository files navigation

chrome-neo-plus

Overhaul of the chrome-neo chrome extension

Leverages the following NASA apis:

  • Astronomy Picture of the Day
  • Asteroids NeoWs
  • NASA Image and Video Library

All projects will use the following APIs: https://api.nasa.gov/

Previous Codebases

Development

Provide an API_KEY in .env with format:

API_KEY=123

Then build a config file with, this only needs to be done initially.

npm run build:api-Config

Finally run the app in "chrome-extension mode" with:

npx nx run chrome-extension:serve

The build should be done and auto-updates, from here load the extension in the browser using the chrome extension page chrome://extensions

Alternate serve mode

Use the following to serve the extension like any webapp

npm run serve:dist

Then go to http://localhost:8080/popup.html to view the app.

production build

Within github-actions, the following commands are done in order to validate the production build:

  • npm run build:api-config
  • npx nx run internal-client:export
  • npx nx run internal-client:lighthouse
  • npx nx run internal-client:analyze

To directly perform the build use the following:

  • npm run build:api-config
  • npx nx run internal-client:export

Issue with node 18 ssl on WSL 2

Use the following to force legacy providers for node:

export NODE_OPTIONS=--openssl-legacy-provider

License

MIT