underworld14 / bca-kurs-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BCA Kurs API

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.

Tech Stack

Expressjs, Prisma, Mocha & Chai, Mysql, Docker

Run Locally

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

Running Tests

To run tests, run the following command

    npm run test

Build

To build this project run

    npm run build

Start The Project

    npm run start

Documentation

Postman API Collection

About


Languages

Language:HTML 87.3%Language:JavaScript 12.7%