badhan-admin-frontend repository consists of the code for the admin console frontend for the android app and website of Badhan, BUET Zone. This repository is a part of the Badhan, BUET Zone Github Organization.
- React.js
Badhan Admin Console Website is an extension of the main Badhan, BUET Zone Android app that manages operations accessible by the Super Admins of this platform. This website consists of two repositories:
- Frontend (https://github.com/Badhan-BUET-Zone/badhan-admin-frontend)
- Backend (https://github.com/Badhan-BUET-Zone/badhan-admin-api)
This website can be visited by any one of the following links:
- Direct Login (https://badhan-admin.web.app/)
- Secure Redirection from app (https://badhan-buet.web.app/#/adminconsole)
This admin console website consists of the functionalities that were once done manually directly on the database. The reasons why I did not implement these features in the main app is because I wanted to keep the code of the main app lean. And it seemed to me that these admin console features will be accessed once in one or two years and I wanted to keep these less used but highly sensitive features seperate from the active app. This app will also allow me to implement features that are necessary for app management without needing to touch the main app.
https://badhan-admin.web.app/management/version
- To send notification to the general user of the app if a new version of the app is available in Google Play Store
https://badhan-admin.web.app/management/contributors
- To manage the list of contributors shown in the Credits page of the app
https://badhan-admin.web.app/management/superadmin
- To add or remove super admins of the platform
https://badhan-admin.web.app/backup-restore
- To backup and restore the MongoDB database of the whole platform
The admin console is deployed in Firebase. The deployment can be found at https://badhan-admin.web.app
-
Install Node.js.
-
Clone this repository:
git clone https://github.com/Badhan-BUET-Zone/badhan-admin-frontend
-
Run
npm i
from inside the cloned repo. -
Run
npm run start
-
Visit
https://localhost:8080
.
The Backup-and-Restore page is a UI for the API implemented in this repository. However, this API has not been deployed to a live server and thus, you will need to follow through the instructions written below in order to run the API locally in your machine.
- Install Node.js on your machine
- Clone this repository. To do this, run
git clone https://github.com/Badhan-BUET-Zone/badhan-backup
- Enter into the directory and install all dependencies. Run
cd badhan-backup
andnpm i
- Download the contents of this link and put these files inside the
bin
folder of the cloned repo. - Get
badhan-buet-1d20b088a755.json
andconfig.env
files from me ([email protected]). Paste them inside theconfig
folder of the cloned repository.
Now, for every time you want to visit the backup-and-restore page, follow the instructions written below:
- Run
npm start
inside the repo. - Go to https://badhan-admin.web.app/backup-restore
You should now see the Backup-and-Restore page