suppress git and reinstall to eliminate bad interaction with path in cmd tool. Now in webstorm
the terminal windows seems to work : nice!!
otherwise added socket.io and postgres basic tests
add modules to the server side with require
add debug.js server side with exports
add rpc.js (TBD) algorithm - implementation pending to write
add some file in assets (sql queries to make the word table, and corresponding csv file)
add utils.js but not many functions in it yet
add some stuff in temp.js for later retrieval
// done: fine-grained tuning by tag and function of log displaying
// done: added a timeStamp function to log time of messages
added a main.js in asset as back up from unit testing in other project
Here and possibly the recently checked-out version, the server-side querying of the database for important words is done one word by one word, which comes out as slow. Also everything is cached, which can lead con ever expanding size of cache, never decreasing. Considering reverting to old style in later versions
switched back to a queryingi in bulk to improve performance. A few issues remaining but for the typical news websites, it should work
changed const to var for usage with spy.js in webstorm
some comment cleaning
getting closer to use javadoc tag for documentation
failed attenpt to override define to use karma in connection with requirejs
successful to replicate karma boilerplate here.
Had to change the structure of the directories to do so, why this works and not what I tried befor remains a mistery
cleaned some todo and issues
some refactorization to be able to test functions
also adding var i where it was not, to avoid tricky infinite loop (i was used in readability and then again in logWrite forcing infinite loop)
finished refactoring readability.js
written some tests using require, but with Karma. Impossible to make it work webstyle with mocha. I like mocha more though. and jasmine reporter too, but oculd not make it work.
2 tests are not passing, 1 cannot (czech langauge)
some bug corrections, and identification of some corrections to bring
still tests to write but how to include big texts as expected results
solved a few bugs
improved error messaging in case something goes wrong with the upload or the selection of div
improved error messaging in case something goes wrong with the upload or the selection of div
refactoring of async_cached to change of cache implementation later
tested quickly and seems to work
changed to setItem and getItem, tested passing an empty array as the cache
refactored reabability into ReaderModel
Created a ReaderController
Also integrated the tooltip functionality from TransOver
more refactoring
todo: refactoring DS.outputStore to separate callback from result concatenation and include recognition of just callback passed as parameter instead of osStore structure
Note:; teh change of name of readability to ReaderModel still has to be made in GIT