Skip to content

MazenIbrahim1/PHAJAM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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