Skip to content

kode backend dan frontend untuk fitur Konversi Mata Uang & Swap Kripto di PiBukaHub. #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Clawue884
Copy link

Pull Request Template

Description

Please include a summary of the changes made in this pull request. Include any relevant context or background information.

  • What issue does this pull request address?
  • What are the main changes introduced in this pull request?

Type of Change

Please mark the type of change your pull request introduces:

  • Bugfix
  • New feature
  • Documentation update
  • Other (please specify):

Checklist

Please ensure your pull request meets the following criteria:

  • I have read the CONTRIBUTING.md document.
  • My code follows the existing style guidelines of this project.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the documentation (if applicable).
  • I have included any necessary screenshots or examples (if applicable).

Related Issues

Please link any related issues here (e.g., "Fixes #123", "Related to #456").

Additional Notes

Please provide any additional information or context that may be helpful for the reviewers.

Backend (Node.js + Express.js)

Kita akan menggunakan Coingecko API untuk mendapatkan harga real-time.

Langkah 1: Install Dependensi

npm install express axios cors dotenv

Langkah 2: Buat Server di server.js
Frontend (React.js)

Kita buat antarmuka pengguna agar pengguna bisa melihat nilai tukar dan melakukan swap.

Langkah 1: Install Axios

npm install axios

Langkah 2: Buat Komponen Konversi di ConvertPi.js
Hasil Akhir

✅ PiBukaHub kini memiliki fitur:
✔ Konversi Pi Coin ke mata uang lain (USD, EUR, BTC, ETH, dll.).
✔ Swap antara dua mata uang kripto (Pi Coin, BTC, ETH).
✔ Nilai tukar real-time dengan API dari CoinGecko.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant