Just clone the repository with
git clone https://github.com/stefanisarie/nasapictureoftheday
Then
cd nasapictureoftheday
yarn install
yarn dev
The development server should run at http://localhost:3000. Please make sure to update the NASA_API_KEY in your .env file.
You will be able to toggle between dark and light mode with the button placed in the top left corner.
Switching between HTD and SD image is done with the button found in the top right corner.
The date when the last fetched image happened is in human readble format.
To build the application:
yarn build
Run built application with the following command:
node .output/server/index.mjs
Open a browser at http://localhost:3000.