This is a decentralized file storage system that enables chunked file uploads and retrieval using IPFS. The project consists of two services: a backend (NestJS) and a frontend (Next.js).
- Chunked File Upload: Supports uploading large files in chunks.
- IPFS Integration: Stores and retrieves files using IPFS.
- Ports
3000
(frontend) and3002
(backend) should be free.
git clone https://github.com/harshsoni-harsh/d-storage-system
cd d-storage-system
set .env for backend as PORT=3002
-
Install Dependencies:
cd backend npm install cd ../frontend npm install
-
Run Backend:
cd backend npm run start:dev
-
Run Frontend:
cd frontend npm run dev
-
Access the application:
- Frontend: http://localhost:3000
- Backend: http://localhost:3002
-
Upload Files
- Open the frontend at http://localhost:3000.
- Select a file to upload.
- After the upload is completed, a CID (Content Identifier) will be displayed.
- File Handling: The project supports file storage and retrieval over IPFS in a local network environment.
- File Size: Currently, only small-sized files are supported. Large file uploads require additional chunking and handling mechanisms.
- Incentivization: Incentivization models for storage providers are yet to be implemented.
- Storage Management: Storage management and optimization are pending configuration.