A decentralized auction platform developed using Solidity for smart contracts and React.js for the frontend interface.
- User Authentication: Allows users to sign up and log in to the platform.
- Add Items: Users can list items for auction with a minimum bid requirement.
- Place Bids: Participants can bid on available auction items.
- Buyout Option: Allows immediate purchase of an item at the buyout price.
- Responsive Design: Ensures a seamless experience across different devices.
Ensure you have Node.js, Truffle Suite, and Ganache installed on your machine to proceed with the following steps:
-
Start Ganache:
- Open Ganache and start a local blockchain instance.
-
Compile and Deploy Contracts:
- Navigate to the backend directory:
cd backend - Compile the smart contracts:
truffle compile
- Deploy the contracts to the local blockchain:
Or, to reset the state of previously deployed contracts:
truffle migrate
truffle migrate --reset
- Navigate to the backend directory:
-
Integrate Contract with Frontend:
- Copy the contract's JSON file to the frontend:
cp /backend/build/contracts/DecentralizedAuction.json /frontend/src/
- Copy the contract's JSON file to the frontend:
-
Finalize Backend Setup:
- Ensure all steps are completed without errors.
Ensure you have npm installed to manage dependencies.
-
Prepare the Frontend Environment:
- Change to the frontend directory:
cd frontend - Install necessary dependencies:
npm install
- Change to the frontend directory:
-
Launch the Frontend Application:
- Start the application:
npm start
- This will open the web application in your default browser, typically accessible at
http://localhost:3000.
- Start the application:
-
Verify Operation:
- Interact with the application to ensure all functionalities such as adding items, bidding, and buyout are working correctly.
- Ensure your browser has the MetaMask extension installed and connected to the local blockchain provided by Ganache to interact with the deployed contracts.
- The platform can be extended or modified to include additional features such as a more advanced bidding mechanism or integration with real-world auction standards.