This is the landing page for Antenna Insect Data Platform. The app was setup using Next.js and create-next-app. We output as a static site using Next Static Exports.
- Node
- NPM
The .nvmrc file in project root describes the recommended Node version for this project.
# Install dependencies
npm install
# Run app in development mode
npm run devThe app will now be available in a browser on http://localhost:3000. Hot reload will be enabled by default.
With a static export, the app can be deployed and hosted on any web server that can serve HTML/CSS/JS static assets. When running the build command, Next.js generates the static export into the out folder.
# Install dependencies
npm install
# Generate static export
npm run build
# [Only for testing] Serve prod app on localhost
npx serve@latest outAll text content is specified in content.json. To edit any content, simply update this file.
To update stats (station map and counts), simply run this script. This will fetch data from the API and save it to stats.json. This makes it possible for the web app to access stats without loading times.
npm run update-stats