Kshitij2604 commited on
Commit
a39ecd3
Β·
verified Β·
1 Parent(s): 3102005

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +184 -184
README.md CHANGED
@@ -1,184 +1,184 @@
1
- ---
2
- title: Project Management System
3
- emoji: πŸš€
4
- colorFrom: blue
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: "3.50.2"
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- # Project Management System
13
-
14
- A web-based project management system for managing student projects across different domains.
15
-
16
- ## Features
17
-
18
- - User Authentication (Student/Faculty)
19
- - Project Management
20
- - Domain-based Project Organization
21
- - Student Project Assignment
22
- - Admin Panel
23
- - Responsive Design
24
-
25
- ## Deployment on Hugging Face Spaces
26
-
27
- 1. Fork this repository
28
- 2. Create a new Space on Hugging Face
29
- 3. Connect your forked repository to the Space
30
- 4. Configure the following environment variables in your Space settings:
31
- ```
32
- DB_HOST=your_database_host
33
- DB_USER=your_database_username
34
- DB_PASSWORD=your_database_password
35
- DB_NAME=your_database_name
36
- ```
37
-
38
- ## Local Development
39
-
40
- 1. Clone the repository
41
- 2. Install Python dependencies:
42
- ```bash
43
- pip install -r requirements.txt
44
- ```
45
- 3. Set up your environment variables in a `.env` file:
46
- ```
47
- DB_HOST=localhost
48
- DB_USER=root
49
- DB_PASSWORD=your_password
50
- DB_NAME=dms
51
- ```
52
- 4. Run the application:
53
- ```bash
54
- python app.py
55
- ```
56
-
57
- ## Database Setup
58
-
59
- 1. Create a MySQL database named 'dms'
60
- 2. Import the database schema from `dms.sql`
61
- 3. Run `create_domain_descriptions.php` to set up domain descriptions
62
-
63
- ## Directory Structure
64
-
65
- ```
66
- β”œβ”€β”€ app.py # Flask application
67
- β”œβ”€β”€ requirements.txt # Python dependencies
68
- β”œβ”€β”€ index.php # Homepage
69
- β”œβ”€β”€ domains.php # Domain listing
70
- β”œβ”€β”€ project_*.php # Project management files
71
- β”œβ”€β”€ admin.php # Admin panel
72
- β”œβ”€β”€ css/ # Stylesheets
73
- β”œβ”€β”€ js/ # JavaScript files
74
- β”œβ”€β”€ includes/ # PHP includes
75
- └── ajax/ # AJAX handlers
76
- ```
77
-
78
- ## Security Considerations
79
-
80
- - All user inputs are sanitized
81
- - Passwords are hashed using secure methods
82
- - Session management is implemented
83
- - Access control is enforced based on user roles
84
-
85
- ## Contributing
86
-
87
- 1. Fork the repository
88
- 2. Create a feature branch
89
- 3. Commit your changes
90
- 4. Push to the branch
91
- 5. Create a Pull Request
92
-
93
- ## License
94
-
95
- This project is licensed under the MIT License - see the LICENSE file for details.
96
-
97
- # Domain Management System
98
-
99
- A web-based platform to explore, search, and view projects across various domains, based on the DMS database.
100
-
101
- ## Features
102
-
103
- - **Browse Domains**: View all available domains in the system and their associated projects.
104
- - **Project Search**: Search for projects by name, description, domain, or type (Hardware/Software).
105
- - **Project Details**: View detailed information about each project, including descriptions, contact information, and associated resources.
106
- - **Student Information**: If the student table exists, search and view student information related to projects.
107
- - **Dynamic Data Fetching**: The system automatically fetches data from parent tables, avoiding manual duplication of data.
108
- - **Domain Descriptions**: Domain descriptions are automatically generated from the database or fallback to defaults.
109
-
110
- ## Setup Instructions
111
-
112
- ### Prerequisites
113
-
114
- - Web server with PHP support (e.g., Apache, Nginx)
115
- - MySQL/MariaDB database server
116
- - PHP 7.0 or higher
117
-
118
- ### Database Setup
119
-
120
- 1. Create a new database named `dms` in your MySQL server:
121
- ```sql
122
- CREATE DATABASE dms;
123
- ```
124
-
125
- 2. Import the SQL file (`dms (2).sql`) into your database:
126
- - Using phpMyAdmin: Go to the Import tab, select the SQL file, and click "Go"
127
- - Using MySQL command line:
128
- ```
129
- mysql -u username -p dms < "dms (2).sql"
130
- ```
131
-
132
- 3. (Optional) Create domain descriptions table:
133
- - Access the `create_domain_descriptions.php` script in your browser to create and populate the domain_descriptions table
134
- - This step is optional but recommended for better organization of domain metadata
135
-
136
- ### Web Application Setup
137
-
138
- 1. Copy all files to your web server's document root (or a subdirectory).
139
- 2. Update the database connection details in `includes/db_connect.php` if needed.
140
- 3. Make sure your web server has permissions to read/write to the files.
141
- 4. Access the website through your web browser.
142
-
143
- ## Database Structure
144
-
145
- The database consists of multiple tables:
146
-
147
- - `domain_1` through `domain_12`: Tables containing projects from different domains
148
- - `students_info`: Table containing student information (if available)
149
- - `domain_descriptions`: Optional table for storing domain descriptions
150
-
151
- Each domain table has a similar structure with fields like:
152
- - `Domain_ID`
153
- - `Project_ID`
154
- - `Project_Name`/`Project _Name`
155
- - `Email`
156
- - `H/S` (Hardware/Software)
157
- - `Description`
158
- - `Links`
159
-
160
- ## Dynamic Data Handling
161
-
162
- The system uses several utility functions to automatically fetch and process data:
163
-
164
- - **Domain Descriptions**: Automatically fetched from the domain_descriptions table if it exists, otherwise falls back to default values
165
- - **Project Names**: The system handles different column naming conventions across tables
166
- - **Cross-Domain Search**: Searches can be performed across all domain tables simultaneously
167
- - **Student-Project Association**: Student data is linked dynamically to projects for comprehensive viewing
168
-
169
- ## Usage
170
-
171
- 1. **Home Page**: View basic statistics and recent projects from all domains
172
- 2. **Domains Page**: Browse all domains and access their projects
173
- 3. **Projects Page**: Search for projects across all domains with advanced filtering
174
- 4. **Students Page**: Search for students by name, division, or domain (if the table exists)
175
-
176
- ## Troubleshooting
177
-
178
- - If you encounter database connection errors, verify that the credentials in `includes/db_connect.php` are correct.
179
- - Make sure that the `dms` database has been properly imported with all required tables.
180
- - Check your PHP error logs if you're experiencing issues with the website.
181
-
182
- ## Credits
183
-
184
- Created as a Database Management System project.
 
1
+ ---
2
+ title: Project Management System
3
+ emoji: πŸš€
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: 5.22.0
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
+
12
+ # Project Management System
13
+
14
+ A web-based project management system for managing student projects across different domains.
15
+
16
+ ## Features
17
+
18
+ - User Authentication (Student/Faculty)
19
+ - Project Management
20
+ - Domain-based Project Organization
21
+ - Student Project Assignment
22
+ - Admin Panel
23
+ - Responsive Design
24
+
25
+ ## Deployment on Hugging Face Spaces
26
+
27
+ 1. Fork this repository
28
+ 2. Create a new Space on Hugging Face
29
+ 3. Connect your forked repository to the Space
30
+ 4. Configure the following environment variables in your Space settings:
31
+ ```
32
+ DB_HOST=your_database_host
33
+ DB_USER=your_database_username
34
+ DB_PASSWORD=your_database_password
35
+ DB_NAME=your_database_name
36
+ ```
37
+
38
+ ## Local Development
39
+
40
+ 1. Clone the repository
41
+ 2. Install Python dependencies:
42
+ ```bash
43
+ pip install -r requirements.txt
44
+ ```
45
+ 3. Set up your environment variables in a `.env` file:
46
+ ```
47
+ DB_HOST=localhost
48
+ DB_USER=root
49
+ DB_PASSWORD=your_password
50
+ DB_NAME=dms
51
+ ```
52
+ 4. Run the application:
53
+ ```bash
54
+ python app.py
55
+ ```
56
+
57
+ ## Database Setup
58
+
59
+ 1. Create a MySQL database named 'dms'
60
+ 2. Import the database schema from `dms.sql`
61
+ 3. Run `create_domain_descriptions.php` to set up domain descriptions
62
+
63
+ ## Directory Structure
64
+
65
+ ```
66
+ β”œβ”€β”€ app.py # Flask application
67
+ β”œβ”€β”€ requirements.txt # Python dependencies
68
+ β”œβ”€β”€ index.php # Homepage
69
+ β”œβ”€β”€ domains.php # Domain listing
70
+ β”œβ”€β”€ project_*.php # Project management files
71
+ β”œβ”€β”€ admin.php # Admin panel
72
+ β”œβ”€β”€ css/ # Stylesheets
73
+ β”œβ”€β”€ js/ # JavaScript files
74
+ β”œβ”€β”€ includes/ # PHP includes
75
+ └── ajax/ # AJAX handlers
76
+ ```
77
+
78
+ ## Security Considerations
79
+
80
+ - All user inputs are sanitized
81
+ - Passwords are hashed using secure methods
82
+ - Session management is implemented
83
+ - Access control is enforced based on user roles
84
+
85
+ ## Contributing
86
+
87
+ 1. Fork the repository
88
+ 2. Create a feature branch
89
+ 3. Commit your changes
90
+ 4. Push to the branch
91
+ 5. Create a Pull Request
92
+
93
+ ## License
94
+
95
+ This project is licensed under the MIT License - see the LICENSE file for details.
96
+
97
+ # Domain Management System
98
+
99
+ A web-based platform to explore, search, and view projects across various domains, based on the DMS database.
100
+
101
+ ## Features
102
+
103
+ - **Browse Domains**: View all available domains in the system and their associated projects.
104
+ - **Project Search**: Search for projects by name, description, domain, or type (Hardware/Software).
105
+ - **Project Details**: View detailed information about each project, including descriptions, contact information, and associated resources.
106
+ - **Student Information**: If the student table exists, search and view student information related to projects.
107
+ - **Dynamic Data Fetching**: The system automatically fetches data from parent tables, avoiding manual duplication of data.
108
+ - **Domain Descriptions**: Domain descriptions are automatically generated from the database or fallback to defaults.
109
+
110
+ ## Setup Instructions
111
+
112
+ ### Prerequisites
113
+
114
+ - Web server with PHP support (e.g., Apache, Nginx)
115
+ - MySQL/MariaDB database server
116
+ - PHP 7.0 or higher
117
+
118
+ ### Database Setup
119
+
120
+ 1. Create a new database named `dms` in your MySQL server:
121
+ ```sql
122
+ CREATE DATABASE dms;
123
+ ```
124
+
125
+ 2. Import the SQL file (`dms (2).sql`) into your database:
126
+ - Using phpMyAdmin: Go to the Import tab, select the SQL file, and click "Go"
127
+ - Using MySQL command line:
128
+ ```
129
+ mysql -u username -p dms < "dms (2).sql"
130
+ ```
131
+
132
+ 3. (Optional) Create domain descriptions table:
133
+ - Access the `create_domain_descriptions.php` script in your browser to create and populate the domain_descriptions table
134
+ - This step is optional but recommended for better organization of domain metadata
135
+
136
+ ### Web Application Setup
137
+
138
+ 1. Copy all files to your web server's document root (or a subdirectory).
139
+ 2. Update the database connection details in `includes/db_connect.php` if needed.
140
+ 3. Make sure your web server has permissions to read/write to the files.
141
+ 4. Access the website through your web browser.
142
+
143
+ ## Database Structure
144
+
145
+ The database consists of multiple tables:
146
+
147
+ - `domain_1` through `domain_12`: Tables containing projects from different domains
148
+ - `students_info`: Table containing student information (if available)
149
+ - `domain_descriptions`: Optional table for storing domain descriptions
150
+
151
+ Each domain table has a similar structure with fields like:
152
+ - `Domain_ID`
153
+ - `Project_ID`
154
+ - `Project_Name`/`Project _Name`
155
+ - `Email`
156
+ - `H/S` (Hardware/Software)
157
+ - `Description`
158
+ - `Links`
159
+
160
+ ## Dynamic Data Handling
161
+
162
+ The system uses several utility functions to automatically fetch and process data:
163
+
164
+ - **Domain Descriptions**: Automatically fetched from the domain_descriptions table if it exists, otherwise falls back to default values
165
+ - **Project Names**: The system handles different column naming conventions across tables
166
+ - **Cross-Domain Search**: Searches can be performed across all domain tables simultaneously
167
+ - **Student-Project Association**: Student data is linked dynamically to projects for comprehensive viewing
168
+
169
+ ## Usage
170
+
171
+ 1. **Home Page**: View basic statistics and recent projects from all domains
172
+ 2. **Domains Page**: Browse all domains and access their projects
173
+ 3. **Projects Page**: Search for projects across all domains with advanced filtering
174
+ 4. **Students Page**: Search for students by name, division, or domain (if the table exists)
175
+
176
+ ## Troubleshooting
177
+
178
+ - If you encounter database connection errors, verify that the credentials in `includes/db_connect.php` are correct.
179
+ - Make sure that the `dms` database has been properly imported with all required tables.
180
+ - Check your PHP error logs if you're experiencing issues with the website.
181
+
182
+ ## Credits
183
+
184
+ Created as a Database Management System project.