Welcome to the SurveyX
The project is divided into three parts
(a) SurveyX Backend
(b) SurveyX Web Interface
(c) SurveyX Contracts
Welcome to the SurveyX backend! This folder contains the logic for survey creation, management, and data processing.
The SurveyX backend is responsible for handling the core functionalities of the survey system. It facilitates survey creation, management, and data processing. This backend is designed to work seamlessly with the SurveyX web interface and smart contracts.
To set up the SurveyX backend, follow these steps:
- Navigate to the
backend
folder:cd backend
- Install dependencies:
npm install
- Configure the environment variables (see Configuration section)
- Start the backend server:
npm start
Once the backend is set up and running, you can interact with it through the SurveyX web interface or any API client. The backend provides a set of API endpoints to manage surveys, questions, responses, and more.
The SurveyX backend uses environment variables for configuration. Create a .env
file in the backend
folder and specify the following variables:
PORT=3000
SECRET_KEY=your-secret-key
Adjust the values based on your environment and requirements.
Welcome to the SurveyX web interface repository! This folder contains the source code for the React.js-based user interface, allowing users to take surveys and interact with the SurveyX platform.
The SurveyX web interface provides an intuitive and responsive platform for survey designers and respondents. It leverages the power of React.js to create a dynamic and user-friendly experience. The interface allows users to take surveys, and manage survey-related settings.
To get started with the SurveyX web interface, follow these steps:
- Clone the main SurveyX repository:
git clone https://github.com/yanivas/surveyx.git
- Navigate to the
web
folder:cd surveyx/web
- Install dependencies:
npm install
- Start the development server:
npm start
- Open your browser and visit
http://localhost:3000
to access the SurveyX web interface.
The web
folder has the following structure:
- public: Contains public assets, such as images and the
index.html
file. - src: Contains the source code for the React.js application.
- components: Reusable React components used throughout the application.
- pages: Individual pages representing different sections of the web interface.
- styles: Stylesheets and styling-related files.
It has two main contracts
- Survey creation and responding payout functions
- Anon Aadhar verfication smart contract
We were able to utilise only one smart contract actively in the functionality of the web application which has the following three major functions:
- Create a survey and define a budget for each survey along with number of respondents
- Fill a survey and call payable function to redeem the rewards earned by responses
- Get survey details where you get pending budget and number of responses
Feel free to customize this README file further based on the specific features and details of your web interface.
We welcome contributions! To contribute to the SurveyX.
SurveyX is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.