Skip to content

Commit da08cdb

Browse files
committed
docs(admin):in this added new feature implemention plan by creating folder sturture and inside page.tsx inside adding what they need
1 parent a4bf8d1 commit da08cdb

5 files changed

Lines changed: 78 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ For any queries, feel free to reach out:
8080
8181
✨ *Empowering students by showcasing their projects!*
8282
83+
84+

app/admin/ManageAdmin/page.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Admin User Management:
3+
*
4+
* On this page, users should be able to add, delete, or list admin users.
5+
* The existing code for this functionality is in the Scholarship Management System,
6+
* or you can ask Darsana Abhiram for the exact location.
7+
*
8+
* Implement this functionality using Firebase Auth collections.
9+
*/
10+
import React from 'react';
11+
12+
export default function ManageAdminPage() {
13+
return (
14+
<div>
15+
<h1>Admin Page</h1>
16+
</div>
17+
);
18+
}

app/admin/ManageCateogory/page.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Project Scope:
3+
*
4+
* The project is universal, meaning any college regardless of type should be able to use it.
5+
* Currently, the categories are set for engineering students, which is not suitable for universal use cases.
6+
*
7+
* Therefore, on this page, users are allowed to add, remove, or edit project types, departments, and domains as well.
8+
*/
9+
import React from 'react';
10+
11+
export default function ManagecateogriesPage() {
12+
return (
13+
<div>
14+
<h1>Admin Page</h1>
15+
</div>
16+
);
17+
}

app/admin/page.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Admin Dashboard (First Page after Login):
3+
*
4+
* When admins log in, this is the first page they will see.
5+
*
6+
* On this page, admins are able to edit or delete any project.
7+
*
8+
* However, before performing edit or delete actions, a confirmation popup should appear
9+
* asking the admin to confirm whether they want to proceed with the edit or deletion.
10+
*/
11+
import React from 'react';
12+
13+
export default function AdminPage() {
14+
return (
15+
<div>
16+
<h1>Admin Page</h1>
17+
</div>
18+
);
19+
}

envcopy.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Firebase Admin SDK credentials (JSON string)
2+
FIREBASE_ADMIN_SDK_KEY='{
3+
"type": "service_account",
4+
"project_id": "your-project-id",
5+
"private_key_id": "your-private-key-id",
6+
"private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END PRIVATE KEY-----\n",
7+
"client_email": "firebase-adminsdk-xxxxx@your-project-id.iam.gserviceaccount.com",
8+
"client_id": "your-client-id",
9+
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
10+
"token_uri": "https://oauth2.googleapis.com/token",
11+
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
12+
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-xxxxx%40your-project-id.iam.gserviceaccount.com",
13+
"universe_domain": "googleapis.com"
14+
}'
15+
16+
NEXT_PUBLIC_FIREBASE_API_KEY=your-firebase-api-key
17+
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-project.firebaseapp.com
18+
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
19+
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-project.appspot.com
20+
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your-messaging-sender-id
21+
NEXT_PUBLIC_FIREBASE_APP_ID=your-app-id
22+
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=your-measurement-id

0 commit comments

Comments
 (0)