Skip to content

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.

Notifications You must be signed in to change notification settings

mmanueljoe/anonymous-feedback-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Anonymous Feedback DApp

Overview

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.

Features

  • 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.

Technologies Used

  • 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.

Installation

Prerequisites

  • Node.js
  • npm (Node Package Manager)
  • Docker (optional, for local Secret Network setup)

Clone the Repository

git clone https://github.com/mmanueljoe/anonymous-feedback-dapp.git
cd anonymous-feedback-dapp

Install Dependencies

npm install

Setup Environment Variables

Create 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

Run the Application

Backend

Navigate to the backend directory and start the server:

cd backend
npm install
npm start

Frontend

Navigate back to the root directory and start the frontend:

npm start

Access the Application

Open your browser and navigate to http://localhost:3000 to use the application.

Usage

  1. Submit Feedback: Select a category, enter your feedback, and submit anonymously.
  2. View Feedback: Administrators can log in to view all submitted feedback.
  3. Vote on Feedback: Users can upvote feedback entries to highlight important issues.

Development

Setting Up Local Secret Network (Optional)

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-dev

This will allow you to interact with a local instance of the Secret Network.

Running Tests

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 test

Contributing

We 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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published