A suite of interactive mapping applications for Fika.
- Waternet Map: Visualize water network data
- SAI Map: Safe Access Index visualization tool
- Impact Map: Bridge location and impact visualization with PostgreSQL integration
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables:
- Copy
.env.local.exampleto.env.local - Add your database connection string
- Copy
The Impact Map requires a PostgreSQL database connection. The database should have a bridges table with the following fields:
id: Bridge IDname: Bridge namebridge_type: Type of bridge (e.g., suspended, trail bridge)year_completed: Year the bridge was completedlatitude: Latitude coordinatelongitude: Longitude coordinatespan_length: Bridge span length in meterscommunities_served: Number of communities servedpeople_served: Number of people served
Start the development server:
npm run dev
# or open in browser automatically
npm run dev -- --openCreate a production version:
npm run buildPreview the production build with npm run preview.
The application is configured for Vercel deployment. Add the following environment variables in Vercel:
DATABASE_URL: PostgreSQL connection string