- Neo stands for Near-Earth Objects. Nasa provides an open API and in this problem, we will be using the Asteroid NeoWs API.
- Data Source NASA's Open API -> https://api.nasa.gov (Go to Browse APIs -> Asteroids - NeoWs -> Neo - Feed) Neo Feed
- Sign up for the API services to get the API key mailed to your inbox.
Look at the Nuxt documentation to learn more.
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run devBuild the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run previewCheck out the deployment documentation for more information.
A real-time asteroid tracking application that displays near-Earth objects using NASA's NEO API.
- Real-time asteroid data from NASA
- Interactive asteroid simulation
- Beautiful space-themed UI
- Responsive design
- Dynamic loading animations
- Node.js (v16 or higher)
- npm (v7 or higher)
- NASA API Key
Create a .env file in the root directory with:
NUXT_PUBLIC_NASA_API_KEY=your_nasa_api_key
NUXT_PUBLIC_NASA_BASE_URL=https://api.nasa.gov/neo/rest/v1- Clone the repository:
git clone <repository-url>
cd asteroid-stats- Install dependencies:
npm install- Create
.envfile with your NASA API key
Run the development server:
npm run dev- Build the application:
npm run build- Start the production server:
node .output/server/index.mjsOr use the deployment script:
./deploy.sh- Build the Docker image:
docker build -t asteroid-stats .- Run the container:
docker run -p 3000:3000 -e NUXT_PUBLIC_NASA_API_KEY=your_api_key asteroid-statsNUXT_PUBLIC_NASA_API_KEY: Your NASA API keyNUXT_PUBLIC_NASA_BASE_URL: NASA NEO API base URL
MIT
