- JavaScript 78.1%
- PHP 19.9%
- Python 1.2%
- CSS 0.8%
| db | ||
| exec | ||
| logs | ||
| public | ||
| adduser.py | ||
| preview.png | ||
| README.md | ||
Debt recovery procedures management project
This repository contains a snapshot of the software I built during school summer vacation. Even though it's functional it should not be assumed to be production-ready.
Running
The only requirement necessary to run this is PHP 8 (php -v), with which you can run the built-in web server:
php -S localhost:8080 -t public
This should be enough to have it up and running at http://localhost:8080, and access it with the credentials test:test.
Adding new users
Because the application is meant to be mainly single user, no interface for registration has been developed for this release. Thus, adding new users is a matter of appending entries to the db/credentials.json file.
The application logs any login attempt inside logs/YYYY-MM-DD.log; for example:
[20:11:09] Failed login | Login tried with user 'test' and data '{"hash":"bb85093a55770de6548f4e981dc86ad7f751aba29e67148d145110d2306de7e23d4f940fa21c9c15d30c2dcae6a99079fac1be3e5ce8d97c3a8cae499ed6a9d9","salt":"2hLcJXgpcZsEywMUkNRCtcPGdpNPtTN07wGx7lRw"}'
This dump is what will have to be inserted into db/credentials.json.
Usually the file will also contain a session key-value entry for each user, but it can be initially ignored as it's going to be filled at first login with the value of the authentication cookie.