Skip to content

Development

J.P. Hutchins edited this page Apr 27, 2020 · 3 revisions

Frontend: library_explorer

  • CSS and "vanilla" JavaScript ES6
  • library_finder/library_explorer/style.css
  • library_finder/library_explorer/script.js

Dependencies

None. library_explorer.html should be able to run on a computer without internet.

Testing

  • Use the library_explorer.html at library_finder/library_explorer/library_explorer.html
  • Or compile a development binary to create a new development mode HTML file
  • Or remove the inline CSS and JS from any library_explorer.html file and replace with reference to the local CSS and JS files.

Compiling

  • To include changes to the the JS and CSS you will need to run the python script at the root of the project python pre_compile_scipt.py before compiling the new binary.
    • This script converts the CSS and JS into raw string literals for easy inclusion in library_finder.cpp
    • Microsoft has imposed a ~16K character limit on string literals so the python script breaks the JS into 4 separate files.

Utility: library_finder

  • library_finder/library_finder/library_finder.cpp
  • library_finder/library_finder/library_finder.h

Dependencies

Windows will need dirent.h

Compile in Visual Studio 2019

  • Get the latest source code: git clone https://www.github.com/JPHutchins/library_finder

For an .exe:

From Solution Explorer, drop down library_finder and open library_finder.cpp Drop down Project and select library_finder Properties Under Configuration Properties->General, under Projec Defaults, verify that Configuration Type is set to Application (.exe)

For unit testing:

Complete the steps above but verify that Configuraiton Type is set to Static library (.lib)