Skip to content

simple bitcoin exchange using plaid api and bitcoin core

Notifications You must be signed in to change notification settings

slimjimrim/bitcoin-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple BTC Exchange and Price Charts

Screen Shot 2023-02-08 at 5 35 04 PM

This project utilizes:

Project setup

Clone the repo and install

cd bitcoin-exchange
npm install
cd server
npm install

Start up MongoDB - default port is (localhost:27017)

  • follow this guide for setup help

Start up Bitcoin Core in -regtest mode - default port is (localhost:18443)

Run tests

cd bitcoin-exchange/server
npm run test

Configure Plaid API (if Plaid API test fails)

  • get client_id and secret here
  • copy/paste values for PLAID_CLIENT_ID and PLAID_SECRET in server/constants.js
  • configure redirect URI here - add http://localhost:3006

Start the server - localhost:3030

cd bitcoin-exchange/server
npm run start

Start the React app - localhost:3006

cd bitcoin-exchange
npm run start
visit localhost:3006 in the browser

NOTES

Areas of improvement

  • Various front-end features:
    • persist user session to prevent logging in on every browser refresh
    • better styling
  • Better implementation of BTC transaction fees
  • More extensive unit/integration tests
  • Containerize the app

What I learned

  • Better understanding of BTC's wallets and UTXO model
  • React hooks are awesome. They greatly simplify react code :)

About

simple bitcoin exchange using plaid api and bitcoin core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published