aboutsummaryrefslogtreecommitdiff
path: root/server.js
AgeCommit message (Collapse)Author
2023-06-26Bug fixes & clearer presentation of errors to end userHEADmasterdevelJoel Kronqvist
2023-06-24Changed to PBKDF2Joel Kronqvist
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
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-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-25Fixed bugs from last commitJoel 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-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-15Bug fixes & started setup.shJoel 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-11Food scraping updationJoel 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-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 branch 'master' into MYSQLDBJoelHMikael
2022-01-18Updating separated from server, lightweight analytics addedJoelHMikael
2022-01-16I forgot to save server.js before commit...JoelHMikael
Yeah I know I know, I should try to learn git instead of messing around like this.
2022-01-16Actual class parsingJoelHMikael
Really messy, feel free to improve, or even rewrite.
2022-01-13Made the parsing more inclusiveJoelHMikael
2022-01-09Database implementedJoelHMikael
Some polishing wouldn't do bad though...
2022-01-08Parsing the shifts (not classes) to the database + some GUI improvementsJoelHMikael
2022-01-07Added the DB class & instructions to set up DBJoelHMikael
2022-01-04Minor GUI improvementsJoelHMikael
2022-01-01Clearer Anti-XSSJoelHMikael
2021-12-30Example inputJoelHMikael
2021-12-30Help iconJoelHMikael
Added a (reusable) help icon that shows additional info about what to do on hover.
2021-12-26Fixed bug in day validation & food searchingjoel
2021-12-26Implemented httpsjoel
2021-12-25Server updating finishedjoel
2021-12-19Server init & updatejoel
2021-12-18Food scrapingJoelHMikael
Added food scraping from the RSS & implemented showing the result on the server
2021-12-11Class parsingJoelHMikael
Parsing in parse.js, implementation in server.js. Also changes to the returned information from parsing and minor ones to the GUI.
2021-12-09Readability improvementsJoelHMikael
buildMain in server.js
2021-12-07Minor changes to the server and UIJoelHMikael
2021-12-07Made a frontend that can be looked atJoelHMikael
2021-12-06Fixed the \r left over in parsingJoelHMikael
2021-12-06Added a possibility to choose the weekdayJoelHMikael
2021-12-06Fixed a minor bug in buildMain in server.jsJoelHMikael
2021-12-06Parsing completedJoelHMikael
Also some improved server logic
2021-12-05Improvements to server.jsJoelHMikael
Improved the readability of the server code by implementing async/await and making the logic based on a dictionary of build functions instead of a switch statement.
2021-11-27Broken shift parsingJoelHMikael
Better WIP
2021-11-22Made serverJoelHMikael
It seems to work. All other things are in progress.