Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Then create an .env
file and insert the following env variables:
MAPBOX_ACCESS_TOKEN=pk.fakeaccesstoken
ISS_POSITION_URL=http://localhost:8000/iss/position
ISS_SUN_URL=http://localhost:8000/iss/sun
UPDATE_WAIT=20000
The first is the mapbox access token, while the others are the endpoints for getting the ISS' live position, the ISS' daylight time windows and the amount of seconds to wait between requests for the position and time windows
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.