SURVEY π MANAGEMENT π SYSTEM
Survey Manager is a web application for creating and managing surveys. It offers a user-friendly interface for non-technical users to easily create surveys, answer questions, and view analytics on the responses.
π SURVEY-MANAGER
β
βββ π README.md
βββ π backend
β βββ π __pycache__
β βββ π instance
β βββ π venv
β βββ π app.py
β βββ π init_db.py
β βββ π schema.sql
β βββ π survey.db
βββ π node_modules
β βββ π modules
β βββ π package-lock.json
βββ π public
β βββ π logo.ico
β βββ π vite.svg
βββ π src
β βββ π assets
β β βββ π logo.ico
β β βββ π vite.svg
β βββ π components
β βββ π pages
β β βββ π AnswerQuestions.jsx
β β βββ π Dashboard.jsx
β β βββ π ManageQuestions.jsx
β βββ π utils
β βββ π api.js
βββ π App.css
βββ π App.jsx
βββ π index.css
βββ π main.jsx
The project folder structure consists of the following files and folders:
-
π README.md: This file contains the documentation and information about the Survey Manager application, including how to use it and any additional details.
-
π backend: This folder contains the backend-related files for the Survey Manager application.
- π app.py: This file contains the Flask backend for the Survey Manager application. It handles the API endpoints and database interactions.
- π init_db.py: This file initializes the database schema.
- π schema.sql: This file contains the SQL statements to create the necessary database schema.
- π survey.db: This is the SQLite database file for the Survey Manager application.
-
π node_modules: This folder contains all the npm packages required for the frontend of the application.
- π package-lock.json: This file describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates.
-
π public: This folder contains the static assets used in the web application.
- π logo.ico: This is the favicon for the application.
- π vite.svg: This is a Vite logo used for development purposes.
-
π src: This folder contains the source code for the frontend of the application.
-
π assets: This subfolder contains additional assets used in the application.
- π logo.ico: This is the favicon for the application.
- π vite.svg: This is a Vite logo used for development purposes.
-
π components: This subfolder will contain any reusable React components.
-
π pages: This subfolder contains the main page components of the application.
- π AnswerQuestions.jsx: This component handles the interface for answering survey questions.
- π Dashboard.jsx: This component displays analytics and visual data of survey responses.
- π ManageQuestions.jsx: This component handles the creation and management of survey questions.
-
π utils: This subfolder contains utility functions used across the application.
- π api.js: This file contains functions for making API requests to the backend.
-
π App.css: This file contains the main CSS styles for the application.
-
π App.jsx: This file is the main entry point for the React application.
-
π index.css: This file contains global CSS styles for the application.
-
π main.jsx: This file is the entry point for the React application and is responsible for rendering the App component.
-
To use the Survey Manager web application, follow these steps:
-
Clone or download this project repository.
-
Install the required dependencies for the frontend:
npm install
- Install the required dependencies for the backend:
pip install -r backend/requirements.txt
- Initialize the database:
cd backend
python init_db.py
- Run the backend Flask server:
python app.py
- Run the frontend development server:
npm run dev
- Open a web browser and access the Survey Manager web application by navigating to
http://localhost:3000
.
The Survey Manager web application is implemented using React for the frontend and Flask for the backend. Here's a breakdown of the different components:
-
JavaScript (React): The frontend is implemented using React. The components in the
src/pages
folder handle the main functionalities of the application. Thesrc/utils/api.js
file contains functions for making API requests to the backend. -
Flask: The backend is implemented in the
backend/app.py
file. It handles the routing and API endpoints for the application. -
CSS: The styles for the application are defined in the
src/App.css
andsrc/index.css
files.
If you encounter any issues or errors while using the Survey Manager web application, consider the following:
-
Double-check that all the necessary files and folders are present in the correct locations, as described in the folder structure section.
-
Ensure that you have Node.js and npm installed on your system, and the required dependencies are installed by running
npm install
. -
Ensure that you have Python installed on your system, and the required dependencies are installed by running
pip install -r backend/requirements.txt
. -
Verify that the database file
survey.db
is initialized and located in thebackend
folder. -
If you encounter any issues with the backend, check that there are no errors in the
backend/app.py
file and that the required dependencies are installed.
If the problem persists, feel free to open an issue in the GitHub repository for further assistance.
This README file provides an overview of the Survey Manager web application, its folder structure, usage instructions, code explanation, and troubleshooting tips. Use it as a guide to understand and utilize the Survey Manager app.