aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-06-26Bug fixes & clearer presentation of errors to end userHEADmasterdevelJoel Kronqvist
2023-06-24Changed to PBKDF2Joel Kronqvist
2023-06-24Made database.js wrapper use connection poolJoel Kronqvist
Using a connection pool instead of a single @$*%^_!# connection increased the throughput tremendously and fixed the problem with the server crashing due to server disconnects, reducing downtime. Why was the latter issue even unfixed?
2023-06-21password for updationJoel Kronqvist
2023-06-21Exception updation & minor polishing (but it's still WIP)Joel Kronqvist
2023-06-21Rescued WIP Shift, class and exception updationJoel Kronqvist
2023-06-21Merge master branches of GitHub repo and server repoJoel Kronqvist
2023-06-21Some patches made in production :facepalm:Joel Kronqvist
At least some of them have to do with running updations timely?
2022-11-18Updated exam/vacation/etc notifications.Joel Kronqvist
Now they don't block the search field, which is more user friendly. They also appear only if the date searched for matches the notification, not if the current date matches the notification.
2022-11-14Introduced (ugly) fix for food overflows. For real, the server was down for ↵Joel Kronqvist
A WHOLE DAY, just because a food next week was 1 CHARACTER MORE than 256 characters!
2022-11-05Hid vegetarian food when it is the same as the normal food. Added date ↵Joel Kronqvist
logging to init.sh.
2022-11-03Corrected typo, added 1h30min waiting time before the foods are updatedJoel Kronqvist
You never know if the city's servers don't get updated instantly, so it might not be a good idea to ask for the foods at (at worst) 1 ms after 00:00 at monday.
2022-11-03Made server update foods at monday morning instead of updating them just ↵Joel Kronqvist
randomly once a week.
2022-11-02Added faviconJoel Kronqvist
2022-10-25Changed null to undefined as it should was meant to be. TL; DR: a typo.Joel Kronqvist
2022-10-25Fixed bugs from last commitJoel Kronqvist
2022-10-25Fixed shift parsing when no teacher is supplied. Made server be run in a ↵Joel Kronqvist
loop in init.sh to bring it up again if it crashes.
2022-10-24Added removal of dumb header in shifts that crashed the parsingJoel Kronqvist
2022-10-20Made vegetarian food empty when not found. Had become visible in commit 'Bug ↵Joel Kronqvist
fixes & started setup.sh'
2022-10-18Enhanced robustness in retrieving the example input and in the init (at ↵Joel Kronqvist
reboot) script. The server errored out if the database was empty and there came a request, as it didn't check for empty arrays in dbparse.js in the function getRandomIndex. Fixed by adding handling & recursion limit. Added in init.sh a check to see if logging in to MySQL is possible to prevent errors at startup.
2022-10-18setup.sh: more robust, some other improvementsJoel Kronqvist
2022-10-18Merge new URL in index.html and setup.sh from branch 'master' to branch 'devel'Joel Kronqvist
2022-10-17Fixed setup.sh cloning url.Joel Kronqvist
2022-10-17Added instructions to start server at reboot. Doesn't neccessarily work. ↵Joel Kronqvist
Updated the init script. No server code updates for now.
2022-10-17Changed the link to the source code in Cont/index.htmlJoel Kronqvist
2022-10-17Imroved README.md, modified server to update on startJoel Kronqvist
Also minor changes to setup.sh and update.js. In update.js the updation function was changed to take a database connection (as in database.js) instead of a string with the credentials to the DB.
2022-10-16Finished setup.shJoel Kronqvist
It should work, even though it's kind of unstable if the user enters dumb things.
2022-10-16More changes to setup.sh. I have no clue how to write bash scripts.Joel Kronqvist
2022-10-16Modified setup script. No guarantees that it works.Joel Kronqvist
2022-10-15Bug fixes & started setup.shJoel Kronqvist
2022-05-13Merge branch 'development'Joel Kronqvist
2022-05-13Fixed big bad bug.Joel Kronqvist
2022-05-13Lol I just need to upload these changes to not loose them while testingJoel Kronqvist
2022-05-13Made init work as sudo so that the server gets permissions to lower portsJoel Kronqvist
2022-05-13Changed ports to 443 AND 80. Added improper error handling when there are ↵Joel Kronqvist
stats already for the day when adding them at exit.
2022-03-11Merge branch 'master' of https://github.com/JoelHMikael/FoodJSJoel Kronqvist
Updating remote changes
2022-03-11Food scraping updationJoel Kronqvist
2022-03-10Class parsing with any number of files with classesJoel Kronqvist
2022-03-09Shift updation rewriteJoel Kronqvist
The shift updation algorithm was a pain to debug, so I changed it to use regex. I hope it helps.
2022-03-05Updated README.mdJoel Kronqvist
2022-03-05Added node_modules for the updating to work properly.Joel Kronqvist
2022-02-13Added updating the server code to README.md instructionsJoelHMikael
2022-02-13Finished README.md instructionsJoelHMikael
2022-02-10Updated README.mdJoel Kronqvist
2022-02-09Merged all functions from the JoelHMikael/funcsJoel Kronqvist
Necessary, because we don't want to complicate our update script & its anyways better like this. They weren't any complicated functions.
2022-01-31Fixed bad footer behavior on mobile firefoxJoel Kronqvist
2022-01-23Exam info system addedJoel Kronqvist
It works only based on the current date. A better system would require good date functions, and right now if I want to make somethng for this project I should focus on either getting it working or making the code less messy (aka writing a big part of it again...). This was my first project of this scale, and the first one that seems to get finished & even published.
2022-01-22Fixed bug in day mechanics for the food searchJoel Kronqvist
Making monday first (0) instead of sunday was done twice, resulting with tuesday becoming first.
2022-01-19Tested on Linux Mint & some bug fixesJoel Kronqvist
2022-01-18Merge pull request #1 from JoelHMikael/MYSQLDBJoelHMikael
Mysqldb