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/
- Original extension
- Partial re-write, used as a starting point
- secondary Partial re-write, tried to use firebase
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
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.
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
Use the following to force legacy providers for node:
export NODE_OPTIONS=--openssl-legacy-provider