- Node.js v12 or above
- Visit https://api.nasa.gov/ and generate a private API key for personal use
-
Clone this repository
-
Install all the framework dependencies
npm i
- Create and env file and add your personal key like this
REACT_APP_NASA_API_KEY = <Your_own_personal_key>
- To build the application, so the environmental variables are set, run the command:
npm run build
âšī¸ Every single time the env file is modified this command must be run once again, so the environmental variables are updated.
- Then, you can run the application:
npm start
React JS will automatically create a local server to deploy the application.
If you want to run the application and see it reflected on GitHub pages Add the secrets to your own repository:
REACT_APP_NASA_API_KEY = <Your_own_personal_key>
ACTIONS_DEPLOY_ACCESS_TOKEN = <Your_own_personal_token_generated_by_github>
The yaml file is already set to retrieve both secrets for deploying de CD/CI pipeline and the environmental variables.