Space Timeline is a Web application that lets users explore outer space directly from their browser!
Just enter a date, and the app generates a beautiful, AI-enhanced timeline using data from NASA and OpenRouter.
For a selected date, the app provides:
- 🧠 AI-generated summary of space-related events and fun facts
- 📷 Astronomy Picture of the Day
- 🌍 Earth Polychromatic Image
- 🤖 Mars Rover Photos
All powered by NASA’s APIs and OpenRouter's chat completion API.
Before starting, you’ll need API keys from:
-
NASA API
Click “Get Started” and complete the signup to generate a key. -
OpenRouter
Sign up, go to your profile’s Keys section, and create an API key.
git clone git@github.com:fspasovski/nasa-app.git
cd nasa-appCreate a .env file inside the backend/ directory and add the following:
NASA_API_KEY=yourNasaApiKey
OPEN_ROUTER_API_KEY=yourOpenRouterApiKey
OPEN_ROUTER_MODEL=mistralai/mistral-7b-instruct
DB_URI=mongodb://root:5eT41aHy2UnYsZIaAtl8a@localhost:27017/space_app_db?authSource=admin
PORT=3000
Replace placeholder values with your actual API keys and database URI.
docker compose up -dOnce the containers are running, access the app at: http://localhost:5173