A demo web application that displays USD/RUB exchange rate data using interactive candlestick charts powered by TradingView's Lightweight Charts library.
- Interactive Candlestick Chart: Real-time visualization of OHLC (Open, High, Low, Close) data
- Responsive Design: Works seamlessly on desktop and mobile devices
- Modern UI: Clean, professional interface with Material Design principles
- TypeScript: Type-safe development with full TypeScript support
- GitHub Pages Ready: Automatic deployment via GitHub Actions
- Vite - Fast build tool and development server
- TypeScript - Type-safe JavaScript development
- Lightweight Charts - Professional trading charts by TradingView
- Vanilla JavaScript - No framework dependencies, lightweight and fast
- Node.js 18 or higher
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/northis/BestChangeRateMonitor.git
cd BestChangeRateMonitor- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:5173
npm run buildThe built files will be in the dist/ directory.
npm run previewThe application expects OHLC data in the following JSON format:
[
{
"time": "2024-01-01",
"open": 89.50,
"high": 90.25,
"low": 89.10,
"close": 89.80
}
]Sample data is provided in public/usdtrub-data.json.
The project is configured for automatic deployment to GitHub Pages:
- Push your changes to the
mainbranch - GitHub Actions will automatically build and deploy the site
- Your site will be available at
https://yourusername.github.io/BestChangeRateMonitor/
- Go to your repository settings
- Navigate to "Pages" section
- Set source to "GitHub Actions"
- The deployment workflow will handle the rest
BestChangeRateMonitor/
├── .github/
│ └── workflows/
│ └── deploy.yml # GitHub Actions deployment
├── public/
│ └── usdtrub-data.json # Sample OHLC data
├── src/
│ └── main.ts # Main TypeScript application
├── index.html # HTML template
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── vite.config.ts # Vite configuration
└── README.md # This file
Replace the data in public/usdtrub-data.json with your own OHLC data following the same format.
Modify the CSS in index.html or create separate stylesheets to customize the appearance.
Edit src/main.ts to modify chart settings, colors, or add new features like indicators or overlays.
This project is open source and available under the MIT License.