Skip to content

DEV-AK-Singh/Emerging-Economics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

At a Glance: India and Other Emerging Economies

Project Overview

Under the guidance of Prof. Sanket Mohapatra (IIM Ahmedabad), we created the website "At a Glance: India and Other Emerging Economies" during our 3rd year college internship. This website compares key economic and financial indicators for selected emerging economies, including India. These indicators document the countries' economic performance, financial markets, financial access, and human development trends.

Preview

🌟 Features

  • Economic Performance: Track and compare GDP, inflation rates, and other vital statistics
  • Financial Markets: Overview of stock market indices, bond markets, and other financial data
  • Financial Access: Analysis of banking penetration, credit availability, and more
  • Human Development Trends: Compare literacy rates, life expectancy, and other key indicators
  • Real-time Data: Live data from World Bank, IMF, and UNDP APIs
  • Local Fallback: JSON data fallback when APIs are unavailable
  • Responsive Design: Works on desktop, tablet, and mobile devices

πŸ›  Technology Stack

Backend

  • Node.js with Express framework
  • Axios for API calls with retry logic
  • CORS enabled for frontend communication

Frontend

  • React with Vite build tool
  • TypeScript for type safety
  • Tailwind CSS for styling
  • Material-UI for interactive graphs

Deployment

  • Docker containerization
  • Docker Compose for multi-container management
  • Nginx reverse proxy
  • Azure VM cloud hosting
  • SSL/TLS encryption via Let's Encrypt

πŸš€ Quick Start with Docker Compose

Prerequisites

  • Docker
  • Docker Compose

1. Clone the Repository

git clone https://github.com/DEV-AK-Singh/Emerging-Economies.git
cd Emerging-Economies

2. Start All Services

docker compose up -d --build
docker compose logs -f

3. Access the Application

4. Stop Services

docker compose down

🐳 Docker Services Overview

Service Port Description
backend 5000 Node.js API server
frontend 80 React UI served by Nginx

πŸ’» Manual Development Setup

Backend

cd backend
npm install
npm run dev

Frontend

cd frontend
npm install
npm run dev

πŸ“Š API Documentation

World Bank

POST /api/worldbank
{
  "indicator": "NY.GDP.MKTP.KD",
  "isLiveData": false
}

World Bank Group

POST /api/worldbankgroup
{
  "indicator": "IMF.CPI.PCPI_PC_CP_A_PT",
  "dataset": "IMF.CPI", 
  "isLiveData": false
}

IMF

POST /api/imf
{
  "indicator": "GGXCNL_G01_GDP_PT",
  "isLiveData": false
}

UNDP

POST /api/undp
{
  "indicator": "hdi",
  "isLiveData": false
}

Health Check

GET /api/health

πŸ“ˆ Indicators

World Bank (Indicator)

NY.GDP.MKTP.KD
NY.GDP.PCAP.PP.KD
CM.MKT.LCAP.GD.ZS
NE.EXP.GNFS.ZS
FS.AST.PRVT.GD.ZS

World Bank Group (Indicator | Dataset)

IMF.CPI.PCPI_PC_CP_A_PT | IMF.CPI
IMF.IFS.ENDA_XDC_USD_RATE | IMF.IFS
IMF.FAS.FCLODCG_GDP_PT | IMF.FAS
IMF.FAS.FCBODCA_NUM | IMF.FAS

IMF (Indicator)

GGXCNL_G01_GDP_PT
G_XWDG_G01_GDP_PT

UNDP (Indicator)

hdi

πŸ”§ Configuration

PORT=5000
NODE_ENV=production
UNDP_API_KEY=your_undp_api_key_here

πŸ“ Project Structure

Emerging-Economies/
β”œβ”€β”€ backend/
β”œβ”€β”€ frontend/
β”œβ”€β”€ docker-compose.yml
└── README.md

🚒 Production Deployment

docker compose -f docker-compose.yml up -d --build
docker compose logs -f
docker compose ps

🩺 Health Monitoring

curl http://localhost:5000/api/health
curl -I http://localhost
docker ps
docker compose logs

πŸ› Troubleshooting

Containers Not Starting

sudo systemctl restart docker
docker compose down
docker compose up -d --build

API Timeouts

Use isLiveData: false, check connectivity, firewall.

Port Conflicts

sudo netstat -tulpn | grep :80

πŸ“Š Data Sources

World Bank World Bank Group IMF
UNDP
Local JSON

🀝 Contributing

Fork β†’ Branch β†’ Commit β†’ Push β†’ PR

πŸ‘₯ Contributors

Abhishek Kumar Singh
Shashank Raghupatro

πŸ™ Acknowledgments

Prof. Sanket Mohapatra (IIM Ahmedabad)

πŸ“„ License

Educational & Research Use Only

About

At a Glance: India and Other Emerging Economies. This website compares a few key economic and financial indicators for selected emerging economies, including India.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages