This page is the simplest possible checklist for a complete beginner who wants to install prerequisites, build the project, run the crawler, start the web application, and then test the whole repository.
./scripts/setup_linux.sh./scripts/build.sh --run-tests./scripts/run_crawler.sh --database-path /tmp/tusho-demo/catalog.sqlite3 --crawl-root /tmp/tusho-demo --log-file-path /tmp/tusho-demo/crawler.jsonl --rebuild-database./scripts/run_web_application.sh --database-path /tmp/tusho-demo/catalog.sqlite3./scripts/test.sh./scripts/setup_linux.sh
mkdir -p /tmp/tusho-demo
touch /tmp/tusho-demo/example.txt
mkdir -p /tmp/tusho-demo/folder
./scripts/build.sh --run-tests
./scripts/run_crawler.sh --database-path /tmp/tusho-demo/catalog.sqlite3 --crawl-root /tmp/tusho-demo --log-file-path /tmp/tusho-demo/crawler.jsonl --rebuild-database
./scripts/run_web_application.sh --database-path /tmp/tusho-demo/catalog.sqlite3
Open http://127.0.0.1:8080/index.php in a browser after the last command starts the PHP server.
/tmp/tusho-demo/catalog.sqlite3: the SQLite database created by the crawler/tmp/tusho-demo/crawler.jsonl: the crawler log file in JSON Lines format/tmp/tusho-demo/web-application.jsonl: the web application request log file./scripts/test.sh
If you use the raw PHP server command, remember that the web app must still
know which XML configuration file to load. The helper script handles that
automatically. The manual path expects either an edited
web/config/application_configuration.xml file or a
TUSHO_WEB_CONFIGURATION_PATH environment variable that points at a local XML
configuration file.
cmake -S . -B build -G Ninja -DTUSHO_BUILD_TESTS=ON
cmake --build build
ctest --test-dir build --output-on-failure
composer install
composer run lint:php
composer run analyse:php
composer run test:php
php -S 127.0.0.1:8080 -t web/public