This is an application used by the Interal Affairs to keep track of cases of staff abuse.
There are three stages to a report:
- Unopened: The report has been filed but an IA member has not looked into it yet.
- Investigating: An IA member has opened the report and has been assigned to investigate it.
- Resolved: The report has been resolved by the IA member responsible for investigating it.
There are several user roles in this application: 0. Suspended: A user account that does not have access to the IAIR portal.
- General Staff (NOT ACTIVATED): A user account that must have their password changed (by default, new accounts that are created become this role).
- General Staff: A general staff member. They only have the ability to file reports.
- Internal Affairs: An IA staff member. They can do everything that 2 can do, plus investigate and resolve reports, and view staff and change a staff member's role from 0 to 2.
- Administrator: An administrator (Grand Inquisitor and Engineering Team members with production access). They can do everything that 3 can do, plus create new accounts and change a staff member's role to 3.
git clone
this repository.- Install MongoDB Compass on your local machine.
- Create a database and name it "iair_dev".
- Create a collection and name it "Users".
- Create and configure a
.env
file in the parent directory like this:
DB_URL="mongodb://127.0.0.1:27017"
DB_NAME="iair_dev"
VERSION=1.01-ALPHA
PORT=8080