Skip to content

Latest commit

 

History

History
66 lines (51 loc) · 1.19 KB

README.md

File metadata and controls

66 lines (51 loc) · 1.19 KB

Welcome to Dolphin Data Sharing by PHAJAM!

A simple decentralized file-sharing application powered by DolphinCoin.

Requirements

  • Go 1.17 or newer
  • Linux-like terminal environment to run the servers in
  • Adding btcd, btcwallet, and btcctl to your PATH environment variable
  • MongoDB

Getting Started

Cloning the Repository

  1. Clone the repository:
    git clone git@github.com:MazenIbrahim1/PHAJAM.git
    

Installing Dependencies (in order) (You should already be in the repo)

  1. Install dependencies:

    cd PHAJAM
    npm install
    

go back to the /PHAJAM directory after. cd ..

  1. Edit the node_id variable in dht/dht.go to be your SBU ID

  2. Running Servers: (Each server gets its own terminal, starting from /PHAJAM)

    • BTCD
      btcd --configfile=btcd/btcd.conf
      
    • Wallet API Server
      cd server
      go run .
      
    • DHT Server
      cd dht
      go run .
      
    • Proxy server
      cd proxy
      go run runProxy.go
      

Running the App on Electron & Web Browser

  1. To run the app:
    cd PHAJAM #(.../PHAJAM/PHAJAM)
    npm run dev