This project is a React.js application built with TypeScript and Vite. It fetches data from the Malaysian government's API to display fuel price information in a graphical format.
- Fetches fuel price data from the Malaysian government API.
- Displays the data in an Area Chart Graph, showing trends over time for RON95, RON97, and diesel.
- Built with React.js for the frontend.
- Utilizes TypeScript for static typing and enhanced developer experience.
- Bundled with Vite for fast development and optimized production builds.
-
Clone the repository:
git clone https://github.com/MuhammadZulhusni/Malaysia-Fuel-Tracker.git
-
Navigate to the project directory:
cd Malaysia-Fuel-Tracker
-
Install dependencies:
npm install
yarn install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
to view the application.
This project fetches data from the Malaysian government's data API. Here's the API endpoint:
- Endpoint: https://api.data.gov.my/data-catalogue?id=fuelprice
- Data available: Fuel price information for RON95, RON97, and diesel.
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature/YourFeatureName
). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeatureName
). - Create a new Pull Request.