Sharefy is a decentralized application (dApp) designed to facilitate listing sharing and student support through a simulated smart contract and NFT system. It connects companies, sponsors, and students in a transparent ecosystem.
- Distributed Listings: Companies can distribute their product listings across different cities.
- Support Contracts: Sponsors can create support contracts for students.
- NFT Tickets: Students can claim support items as NFT tickets.
- Company Dashboard: Companies can view sales and expense statistics.
- User Dashboard: Users can view their claimed tickets and support statistics.
- Frontend: React (Vite) + TypeScript
- Backend: Python (Flask) - Simulates Smart Contracts & NFTs
- Data: JSON files for persistence (
listings.json,contracts.json,tickets.json)
- Node.js & npm (or pnpm)
- Python 3.8+
-
Clone the repository:
git clone https://github.com/your-username/sharefy.git cd sharefy -
Install Frontend Dependencies:
cd Sharefy npm install
You need to run both the Backend (Python) and the Frontend (Node.js) terminals simultaneously.
This server handles the API logic, simulating the blockchain contracts and data storage.
# In the Sharefy directory
python3 src/app.pyThe server will start on http://127.0.0.1:5001
This launches the React application.
# In the Sharefy directory (in a new terminal)
npm run devThe application will be accessible at http://localhost:5173
distribute_listings.py: Generates and distributes sample product listings across cities.fix_images.py: Utility to fix image paths in the listings data.
- Frontend: React, TypeScript, Radix UI, Vite
- Backend: Python, Flask
- Data: JSON (Simulated NoSQL/Ledger)