Welcome to the Restaurant Review DApp project repository! This decentralized application (DApp) leverages blockchain technology to implement an review platform on the Solana network. Participants can add reviews, update reviews and check reviews given by others.
The Restaurant Review DApp provides a user-friendly interface to participate in Solana-based reviews. This project ensures transparency and trust in the review process through the use of smart contracts.
- Add review.
- Update review.
- Browse reviews by other users.
You can go here or follow these steps to set up the project locally and start participating in web3 reviews.
-
Node.js: Ensure Node.js is installed. Download it from nodejs.org.
-
Get yourself a crypto wallet from Phantom or Solflare. You will need one to add reviews.
-
Since the Solana program is running on devnet. You will need to switch to devnet from the wallet's settings.
-
Grab some SOL tokens from https://faucet.solana.com.
- Clone the repository:
git clone https://github.com/rust-solman/restaurant_review.git
- Navigate to the project directory:
cd restaurant_review && cd frontend
- Install required npm packages:
npm install
- Start the development server:
npm run dev
-
Open your web browser and navigate to
http://localhost:3000
to access the DApp. -
Connect your Solana wallet (e.g., Phantom) to the DApp.
-
Browse reviews by others, add reviews of restaurants you have been to.
The smart contracts in this project facilitate the review process. They handle adding and updating reviews. These contracts are deployed on the Solana Devnet.
lib.rs
: Handles the broad logic of creating transactions, adding and updating reviews.instruction.rs
: Defines the program's instruction data for executing the program.state.rs
: Oversees the basic state of the program and handles some common errors.
The DApp frontend is built using modern web technologies including Next.js. It provides an intuitive and interactive user interface for auction participation.
- Next.js: Powers the DApp's user interface.
- Web3.js: The Ethereum JavaScript API for smart contract interaction.
- Phantom/Solflare: Popular Solana wallet browser extension for secure transactions.
Contributions to this project are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Make changes and test thoroughly.
- Commit with clear and concise messages.
- Push changes to your fork.
- Submit a pull request describing your changes.
This project is licensed under the MIT License.
Thank you for your interest in the Web3 Restaurant Review DApp project! For questions or suggestions, reach out to us or open an issue on GitHub. Let your opinions be known on the blockchain! 🚀