An application to call the NASA APOD (Astronomy Picture of the Day) API to and display returned images and videos. To use this application you will need to sign up for a free API key.
All the details can be found in the NASA Open APIs documentation.
The API used by this application is the APOD (Astronomy Picture of the Day).
- Clone this repository
git clone git@github.com:ReadyPlayer2/nasa-playgrounds.git
. - Install dependencies
npm install
. - Create a
.env
file in the top level directory and add your API key in the formatAPI_KEY=abc123
. - Start both the Express server and the React application using
npm run dev
. The Express server is available atlocalhost:5000
and the React application is available atlocalhost:3000
.
- Start the Express server
node server.js
(or simplynodemon
for dynamic updates). Customise Express server port by usingPORT=1234
in your.env
file. - Start the React application
npm start
.
This project was bootstrapped with Create React App.