π³π΅ ΰ€¨ΰ₯ΰ€ͺΰ€Ύΰ€² ΰ€΅ΰ€Ώΰ€¦ΰ₯ΰ€Άΰ₯ ΰ€΅ΰ₯ΰ€―ΰ€Ύΰ€ͺΰ€Ύΰ€° ΰ€‘ΰ₯ΰ€―ΰ€Ύΰ€Έΰ€¬ΰ₯ΰ€°ΰ₯ΰ€‘ | Nepal Foreign Trade Analytics Dashboard
A modern React web application for analyzing Nepal's international trade data from fiscal year 2071/72 to 2081/82 (Bikram Sambat).
- Trade Balance Summary: Overview of import/export trends and trade balance
- Product Analysis: Detailed breakdown of trade by products and commodities
- Country Analysis: Bilateral trade relationships and regional distribution
- Commodity Analysis: HS chapter-wise trade classification and performance
- Custom Office Analysis: Trade processing efficiency across border points
- Commodity-Country Matrix: Cross-analysis of products and trading partners
- Chart.js Integration: Bar charts, line charts, pie charts, scatter plots, radar charts
- Ant Design Components: Professional UI with tables, cards, and controls
- Responsive Design: Mobile-friendly interface with grid layouts
- Real-time Filtering: Dynamic data filtering and search capabilities
- Official Colors: Nepal flag-inspired color scheme
- Bilingual Support: English and Nepali text
- Professional Layout: Government dashboard styling
- Accessibility: WCAG compliant design principles
- Frontend: React 18, TypeScript ready
- UI Library: Ant Design 5.x
- Charts: Chart.js with React Chart.js 2
- Styling: Styled Components + Custom CSS
- Icons: Ant Design Icons
- Build Tool: Create React App
- Package Manager: npm
- Node.js 16+
- npm 8+
- Clone the repository:
git clone https://github.com/Shivaji-137/nepal-foreign-trade-dashboard.git
cd nepal-foreign-trade-dashboard/react-dashboard- Install dependencies:
npm install- Start the development server:
npm start- Open http://localhost:3000 to view it in the browser.
npm start- Runs the app in development modenpm run build- Builds the app for productionnpm test- Launches the test runnernpm run eject- Ejects from Create React App (irreversible)
The dashboard uses a comprehensive data service that includes:
- Summary Data: Fiscal year totals, growth rates, trade balance
- Product Data: HS classification, import/export values
- Country Data: Trading partners, regional distribution
- Commodity Data: Chapter-wise breakdown, competitiveness metrics
- Custom Office Data: Border point efficiency, revenue collection
src/
βββ components/
β βββ SummaryDashboard.js # Trade balance overview
β βββ ProductDashboard.js # Product-wise analysis
β βββ CountryDashboard.js # Country-wise analysis
β βββ CommodityDashboard.js # Commodity classification
β βββ CustomOfficeDashboard.js # Border office performance
β βββ CommodityCountryDashboard.js # Cross-analysis
βββ utils/
β βββ dataService.js # Data loading and utilities
βββ App.js # Main application component
βββ index.css # Global styles
- KPI cards with growth indicators
- Multi-year trend analysis
- Export-import comparison charts
- Trade deficit/surplus tracking
- Top 10 products by trade value
- Product search and filtering
- Trend analysis for specific products
- Import/export ratio calculations
- Bilateral trade relationships
- Regional trade distribution
- Country-wise performance metrics
- Geographic trade patterns
- HS chapter classification
- Trade intensity heatmaps
- Commodity competitiveness analysis
- Market share calculations
- Border point efficiency metrics
- Revenue collection analysis
- Regional office comparison
- Processing volume tracking
- Cross-tabulation of products and countries
- Market positioning analysis
- Trade opportunity identification
- Competitive advantage mapping
- Primary: Department of Customs, Ministry of Finance, Government of Nepal
- Period: FY 2071/72 - 2081/82 (Bikram Sambat)
- Last Updated: July 2025
- Format: Excel files processed into JSON structure
npm run build- GitHub Pages: Automatically deployed via GitHub Actions β
- Netlify: Drag and drop
buildfolder - Vercel: Connect GitHub repository
- Firebase Hosting: Use Firebase CLI
This project is automatically deployed to GitHub Pages using GitHub Actions.
π View Live Dashboard
- Trigger: Push to
mainormasterbranch - Build: Automated via GitHub Actions
- Deploy: GitHub Pages
- URL: https://shivaji-137.github.io/Nepal_ForeignTrade_dashboard_React
- Go to repository Settings β Pages
- Source: Deploy from a branch β
gh-pages - Push code to main branch to trigger deployment
The deployment workflow includes:
- Node.js 18 setup
- Dependency installation
- Test execution
- Production build
- Automatic deployment to GitHub Pages
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Data Provider: Department of Customs, Government of Nepal
- Developer: Shivaji Chaulagain
- Purpose: Trade policy analysis and decision support
Shivaji Chaulagain
- GitHub: @Shivaji-137
- Email: [email protected]
Β© 2025 Shivaji Chaulagain. All rights reserved.
This dashboard is designed to support Nepal's trade policy decisions and economic analysis.