Skip to content

OpenClassrooms-Student-Center/DFSJS-D-finissez-et-d-veloppez-le-front-end-en-utilisant-du-code-React-maintenable

Repository files navigation

TéléSport - Olympic Games History Dashboard

Interactive web application to visualize historical performance data of countries in the Olympic Games.

🚀 Features

  • Interactive Dashboard: View medal counts by country with interactive charts
  • Country Details: Explore detailed statistics for each participating country
  • Data Visualization: Interactive charts powered by Chart.js
  • Responsive Design: Optimized for desktop and mobile devices
  • Modern Stack: Built with React 19, TypeScript, and Tailwind CSS

📋 Prerequisites

  • Node.js 22 LTS or higher
  • npm (included with Node.js)

🛠️ Installation

Clone the repository:

git clone https://github.com/openclassrooms/p2-dfsjs.git
cd p2-dfsjs

Install dependencies:

npm install

🎯 Usage

Development Server

Start the development server:

npm run dev

The application will be available at http://localhost:5173

Production Build

Build the application for production:

npm run build

Linting

Run the linter to check code quality:

npm run lint

📁 Project Structure

p2-dfsjs/
├── public/              # Static public assets
├── src/
│   ├── App.tsx         # Main application component
│   ├── main.tsx        # React entry point
│   └── index.css       # Global styles
├── index.html          # Main HTML page
├── package.json        # Project dependencies
├── tsconfig.json       # TypeScript configuration
├── vite.config.ts      # Vite configuration
├── tailwind.config.js  # Tailwind CSS configuration
└── .eslintrc.cjs       # ESLint configuration

🔧 Tech Stack

  • React 19 - UI library with latest features
  • TypeScript - Static type checking
  • Vite 5 - Fast build tool and dev server
  • Tailwind CSS 4 - Utility-first CSS framework
  • React Router 6 - Client-side routing
  • Chart.js - Interactive data visualization
  • ESLint - Code quality and consistency

📊 Data

The application currently uses mock data to simulate Olympic Games statistics. This architecture is designed to facilitate future integration with a REST API backend.

🎨 Design

The application features:

  • Clean, modern interface optimized for data visualization
  • Responsive layout adapting to all screen sizes
  • Interactive charts with hover effects
  • Smooth navigation between pages

📚 Documentation

For more information on the technologies used:

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📝 License

This project is available for educational and personal use.


Built with React 19 + TypeScript + Vite + Tailwind CSS

About

Code de départ du P2 Développeur Full-Stack JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors