The "BCA Kurs API" repository is a project aimed at scraping exchange rates from BCA (Bank Central Asia) and storing the data in a database. It provides an API for retrieving up-to-date exchange rates from BCA.
Features:
-
Scraping: The project includes scraping functionality to fetch the latest exchange rates from BCA. This is achieved by using web scraping techniques to extract the required data from the BCA website.
-
Database Storage: The scraped exchange rate data is stored in a database to allow easy retrieval and management. The repository utilizes a database system (e.g., MySQL, PostgreSQL) to persist the exchange rate information.
-
API: The project provides an API endpoint for retrieving the exchange rates. This allows users to access the latest exchange rate data through HTTP requests.
Expressjs, Prisma, Mocha & Chai, Mysql, Docker
Clone the project
https://github.com/underworld14/bca-kurs-api
Go to the project directory
cd bca-kurs-api
Install dependencies
npm install
Prepare development environment variables
cp .env.example .env
Boil up the database using docker compose
docker compose up -d
npx prisma db push
npx prisma generate
Start the project development
npm run dev
To run tests, run the following command
npm run test
To build this project run
npm run build
Start The Project
npm run start