This is the basic outlay of the HRMS portal that is to be developed. Currently the main features of this are Geofencing based attendance, and a robust admin portal for the addition of homes and offices. The admin can also view the different attendances and logins. There is an autologout scheduler for every 2 hours, which will logout a logged in user within 2 hours, so the user has to login every 2 hours.
The main configurations are in the config file in the backend, and the config.js file for the frontend. Most of the settings are centralised through these files.
The current authentication system is through jwt as well as ldap (needs some configuration fixes). The other modifications can be done through the respective labeled files. For sql changes and data handling the main responsible files are base.py, models.py, schemas.py, these main factors of db communication are used everywhere in the code.
As of right now, ldap and all authentication is unbinded, and anybody can log in, (needs fixing, havent been able to fix it due to wifi issue). For deployment, use IIS and nssm on the vm server.
Please update all new code through github and manage a proper repo through that.
I have explained the rest of the code to Krithika, please consult her for further queries.
hrmsbuildv1:.
β .gitignore
β LICENSE
β README.md
β
ββββ.vscode
β settings.json
β
ββββhrms_app_dev
ββββbackend
β β admin.py
β β poetry.lock
β β pyproject.toml
β β README.md
β β
β ββββapp
β β .env
β β config.py
β β logger.py
β β main.py
β β
β ββββapi
β β β addresses.py
β β β admin.py
β β β attendance.py
β β β auth.py
β β β offices.py
β β
β ββββcore
β β β auth.py
β β β geofence.py
β β β ldap.py
β β β scheduler.py
β β
β ββββdb
β β β base.py
β β
β ββββmodels
β β β models.py
β β
β ββββschemas
β β β schemas.py
β
ββββfrontend
β admin.html
β index.html
β web.config
β
ββββcss
β admin.css
β styles.css
β
ββββjs
β app.js
β attendance.js
β auth.js
β config.js
β location.js
β
ββββadmin
admin-activity.js
admin-auth.js
admin-dashboard.js
admin-homeaddresses.js
admin-offices.js
admin-users.js
admin.js