Skip to content

๐ŸŒŒ Orion Today is a web app that brings NASAโ€™s Astronomy Picture of the Day (APOD) to life with AI-powered explanations from Grok-4, combining stunning visuals with simple insights.

License

Notifications You must be signed in to change notification settings

vero-code/orion-today

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Orion Today ๐Ÿš€

React Node.js NASA API Grok AI Kiro IDE

Space every day โ€” but never boring.
Orion Today transforms NASAโ€™s official Astronomy Picture of the Day (APOD) into an engaging and accessible experience.
With the help of Grok AI, each cosmic image is explained in a witty and human way, making astronomy inspiring for everyone.

This project was created for the Code with Kiro Hackathon.

โœจ Key Features

  • Daily Content: Automatically fetches the latest photo and data from the NASA APOD API.

  • AI-Powered Explanations: Uses Grok AI to generate engaging, witty descriptions of cosmic phenomena.

  • Modern UI: A clean and responsive user interface built with React and TailwindCSS.

  • Kiro Integration: Core API interaction logic and tests were developed with the Kiro IDE.

๐Ÿ› ๏ธ Tech Stack

  • Frontend: React, Vite, TailwindCSS

  • Backend: Node.js, Express

  • AI IDE: Kiro

  • APIs: Grok API (xAI), NASA APOD API

๐Ÿ“Š Architecture

Here you can find the visual documentation of the system design:

  • Flowchart โ€“ high-level flow of fetching APOD โ†’ Grok explanation โ†’ UI rendering. Flowchart

  • Sequence Diagram โ€“ request/response interactions between Frontend, Backend, Grok, and NASA APIs. Sequence Diagram

๐Ÿš€ Local Setup

To run the project locally, follow these steps:

  1. ๐Ÿ‘‰ Clone the repository:
git clone https://github.com/vero-code/orion-today.git
cd orion-today 
  1. ๐Ÿ‘‰ Set up the Backend:
cd backend  
npm install 

Create a .env file in the backend folder and add your API keys:

GROK_API_KEY=your_grok_api_key  
NASA_API_KEY=your_nasa_api_key  

Start the backend server:

node server.js 

Server will run at http://localhost:3001.

  1. ๐Ÿ‘‰ Set up the Frontend:
cd frontend  
npm install  
npm run dev 

App will run at http://localhost:5173.

๐Ÿงช Running Tests

This project includes unit and integration tests for the backend, generated and refined with the Kiro IDE.

๐Ÿ‘‰ Run all tests:

cd backend
npm test

This will execute both unit tests (e.g., grok_connector.test.js) and integration tests (grok_connector.integration.test.js) using Jest.

๐Ÿ‘‰ Run integration tests only:

npm run test:integration

(see run-integration-tests.js for details)

๐Ÿ“œ License

This project is distributed under the MIT license.

About

๐ŸŒŒ Orion Today is a web app that brings NASAโ€™s Astronomy Picture of the Day (APOD) to life with AI-powered explanations from Grok-4, combining stunning visuals with simple insights.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published