A modern dashboard for visualizing fisheries data from Zanzibar, built with React and Tabler UI components.
- Interactive data visualization for catch and revenue metrics
- Monthly and yearly view modes for time series data
- Seasonal patterns visualization using radar charts
- Multiple currency support (TZS, USD, EUR) for revenue data
- Responsive design optimized for all screen sizes
- Dark/Light theme support
- Landing site selection and filtering
- Real-time data updates and calculations
- Median-based statistical analysis
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository
- Install dependencies:
npm install
# or
yarn install
- Start the development server:
npm start
# or
yarn start
The application will open in your default browser at http://localhost:3000
.
/src
- Source code/components
- React components/pages
- Main page components (Catch.js, Revenue.js, etc.)/charts
- Chart components/layout
- Layout components
/services
- Data services and API calls/utils
- Utility functions/constants
- Configuration constants/data
- Static data files/styles
- CSS and style files
/public
- Static files
npm start
- Runs the app in development modenpm build
- Builds the app for productionnpm test
- Runs the test suitenpm eject
- Ejects from create-react-app
The dashboard provides several visualization features:
- Time series charts for catch and revenue data
- Radar charts for seasonal patterns
- Statistical indicators (median values, percentage changes)
- Interactive filters and controls
- Responsive data updates
The application is deployed on Vercel. For deployment:
-
Set up environment variables:
NODE_OPTIONS='--openssl-legacy-provider'
- Required for build processGENERATE_SOURCEMAP=false
- Optimizes build size
-
Configure build settings:
- Build Command:
npm run build
- Output Directory:
build
- Install Command:
npm install
- Build Command:
-
Enable GitHub integration for automatic deployments
The live version is available at: https://zanzibar-portal.vercel.app/
This project is open source and available under the MIT License.