Look at the Nuxt documentation to learn more.
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.
A real-time asteroid tracking application that displays near-Earth objects using NASA's NEO API.
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
git clone <repository-url>
cd asteroid-stats
npm install
.env
file with your NASA API keyRun the development server:
npm run dev
npm run build
node .output/server/index.mjs
Or use the deployment script:
./deploy.sh
docker build -t asteroid-stats .
docker run -p 3000:3000 -e NUXT_PUBLIC_NASA_API_KEY=your_api_key asteroid-stats
NUXT_PUBLIC_NASA_API_KEY
: Your NASA API keyNUXT_PUBLIC_NASA_BASE_URL
: NASA NEO API base URLMIT