The Anonymous Feedback DApp is a decentralized application built on the Secret Network that allows students and faculty to provide anonymous feedback on various campus services and facilities. This DApp ensures privacy and encourages honest, constructive criticism to improve campus life.
- Anonymous Feedback Submission: Submit encrypted and anonymous feedback, ensuring user privacy.
- Category-based Feedback: Provide feedback on categories like dining services, library facilities, classrooms, administrative services, and more.
- Admin Dashboard: Campus administrators can view anonymized feedback and respond to concerns or suggestions.
- Voting Mechanism: Users can upvote feedback they agree with to help prioritize issues.
- Secure Data Handling: All feedback and responses are securely stored and accessible only to authorized personnel.
- Secret Network: For building private smart contracts and ensuring data privacy.
- CosmWasm: For writing smart contracts.
- SecretJS: For interacting with the Secret Network from the frontend.
- React.js: For building the frontend interface.
- Node.js: For backend server operations.
- Node.js
- npm (Node Package Manager)
- Docker (optional, for local Secret Network setup)
git clone https://github.com/mmanueljoe/anonymous-feedback-dapp.git
cd anonymous-feedback-dappnpm installCreate a .env file in the root directory and add the following environment variables:
REACT_APP_SECRET_RPC_URL=https://api.scrt.network
REACT_APP_SECRET_CHAIN_ID=secret-2
REACT_APP_BACKEND_URL=http://localhost:5000
Navigate to the backend directory and start the server:
cd backend
npm install
npm startNavigate back to the root directory and start the frontend:
npm startOpen your browser and navigate to http://localhost:3000 to use the application.
- Submit Feedback: Select a category, enter your feedback, and submit anonymously.
- View Feedback: Administrators can log in to view all submitted feedback.
- Vote on Feedback: Users can upvote feedback entries to highlight important issues.
To set up a local Secret Network for testing, use Docker:
docker run -d -p 26657:26657 -p 1317:1317 -p 9090:9090 --name secretdev enigmampc/secret-network-sw-devThis will allow you to interact with a local instance of the Secret Network.
To run tests, navigate to the smart contract and frontend directories and execute the test commands:
# Smart Contract Tests
cd contracts
cargo test
# Frontend Tests
cd ../frontend
npm testWe welcome contributions to improve this project! Please fork the repository, create a new branch, and submit a pull request.
This README provides a comprehensive guide to setting up, using, and contributing to the Anonymous Feedback DApp. Feel free to customize it based on your specific setup and requirements.