https://github.com/georgemac510/decent-portfolio
Decent Portfolio is an ETHGlobal Scaling Ethereum hackathon submission and maybe more! It employs OrbitDB for decentralized storage on IPFS as its database.
https://github.com/georgemac510/decent-portfolio
api cryptocurrency database decentralized defi nextjs
Last synced: 2 months ago
JSON representation
Decent Portfolio is an ETHGlobal Scaling Ethereum hackathon submission and maybe more! It employs OrbitDB for decentralized storage on IPFS as its database.
- Host: GitHub
- URL: https://github.com/georgemac510/decent-portfolio
- Owner: georgemac510
- Created: 2024-04-05T23:23:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T21:25:56.000Z (over 1 year ago)
- Last Synced: 2025-02-12T21:22:14.222Z (over 1 year ago)
- Topics: api, cryptocurrency, database, decentralized, defi, nextjs
- Language: JavaScript
- Homepage: https://decent-portfolio.vercel.app/
- Size: 1.86 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Decent Portfolio
The Decent Portfolio app allows users to add digital asset transactions, update their new asset position quantity and average price and query these data points all stored on an OrbitDB decentralized database hosted on IPFS/Filecoin.
### Install OrbitDB database locally
git clone https://github.com/georgemac510/decent-portfolio.git
cd decent-portfolio/orbitdb-db
nvm install 20
npm install
** If errors related to `libp2p`, you may need to install it manually with;
npm install libp2p
### Commands to create Peer #1 and Peer #2 locally
Peer #1:
node index1.js
Output:
position-db address /orbitdb/zdpuAvMs33GVUxYFQwjGufiszEhDUZ7c1XZc7dPMavgZHoWo2
Peer #2:
**Peer #2 must be started with the address of Peer #1
node index.js /orbitdb/zdpuAys9Qjmz3CLzmtafrCkUAP8pTu1c8je1hgofue1zmd
### Running app as a local Docker container
### Ngrok endpoint
ngrok http --domain=orbitdb-server.ngrok.dev http://172.18.0.2:3000