A simple website to show you the nearest reported case of COVID-19 using historical data.
View the live website here: https://wherescovid.casjay.coffee
Note: This app uses historical COVID-19 data from Johns Hopkins CSSE (last updated March 2023).
- Vanilla JavaScript
- Bootstrap 5 (CSS only)
- Parcel 2 bundler
- Express.js (for CORS-enabled server)
- Mobile-responsive design
- Node.js 20.x or higher
- npm
# Clone the repository
git clone https://github.com/now-sh/wherescovid.git
cd wherescovid
# Install dependencies
npm install# Start development server
npm start
# Build for production
npm run build
# Build for GitHub Pages
npm run github
# Serve with CORS headers enabled
npm run serve
# Build and serve
npm run serve:buildThe app can be deployed to various platforms:
- Vercel:
npm run now - GitHub Pages:
npm run github(builds todocs/directory) - Netlify: Automatic deployment with
_headersfile for CORS - Custom server: Use
npm run servewith the Express server
- Rough location provided by: https://ipapi.co and Nominatim
- COVID-19 Data provided by: Johns Hopkins CSSE
- Precise location provided by the browser geolocation API: Geolocation.getCurrentPosition()
- No data is stored by this website. All data is retrieved from external sources. See the privacy policies for https://ipapi.co and Johns Hopkins CSSE