Web application that provides real-time Forex data visualization using dynamic line charts. It allows users to visualize the exchange rate trends between selected currencies over various periods. Built Using FastAPI, Selenium, SQLAlchemy, sqlite, chart.js.
- Python 3.8 or higher
- pip package manager
Follow these steps to set up and run the project locally:
Clone the project repository to your local machine:
git clone https://github.com/khandelwalarvind26/Vance.git
Navigate into the project folder:
cd Vance
Install aiocron in local environment:
pip install aiocron
Create a new virtual environment:
python -m venv venv
Activate the virtual environment:
-
On Windows:
.\venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
Install the required Python packages:
pip install -r requirements.txt
Create a .env
file in the root of the project (if it doesn’t already exist) and add your database URL:
For in-memory DB
DATABASE_URL="sqlite+aiosqlite:///:memory:"
For persisitent DB
DATABASE_URL="sqlite+aiosqlite:///./db_name.db"
Add country pairs on which the indexes are to be fetched
COUNTRY_COMBINATIONS=[["GBP", "INR"],["AED","INR"]]
Start the FastAPI server:
uvicorn app.main:app --host 127.0.0.1 --port 8000 --reload
-
After starting the server, access the API documentation at:
-
Use the interactive Swagger UI to explore and test the endpoints.
-
Frontend with the rendered chats available at http://127.0.0.1:8000/
- Make sure you have
sqlite3
installed on your local machine. - The server automatically reloads on code changes when running with the
--reload
option, useful during development.