A Java/Spring Boot site for launches, sky position, astronomy events, and cached spacecraft lookups.
- NASA APOD on the home page
- Upcoming launches from Launch Library 2 with agency/status/year filters
- Sky object positions for a specific location and time
- Spacecraft position and visible pass checks
- Astronomy events page for sun and moon event data
- Postgres-backed API caching and local spacecraft lookup/autocomplete
- NASA APOD
- The Space Devs Launch Library 2
- AstronomyAPI
- N2YO
- WhereTheISS
- Nominatim (OpenStreetMap geocoding)
Set these in .env locally or in your deploy env file:
NASA_API_KEY=
ASTRONOMY_API_APP_ID=
ASTRONOMY_API_APP_SECRET=
N2YO_API_KEY=
POSTGRES_JDBC_URL=jdbc:postgresql://localhost:5432/spacetracker
POSTGRES_USERNAME=
POSTGRES_PASSWORD=
PORT=8080Older deployments using NY2O_API_KEY still work, but N2YO_API_KEY is the correct spelling.
- Make sure Postgres is running.
- Create the
spacetrackerdatabase. - Fill in the env vars above.
- Start the app:
mvn spring-boot:runOpen http://localhost:8080.
- API responses are cached in Postgres table
api_response_cache - Spacecraft names/IDs are stored in
spacecraft_catalog - Cache tables are auto-created on startup when Postgres env vars are present
- Cache counts are available at
/api/cache/stats