Uses https://github.com/WFCD/warframe-items as data-source
Run composer install
in terminal
Run npm install
in terminal
Copy file public/conf.php.sample
to public/conf.php
Edit $conf["baseUrl"]
and $conf["root"]
in file public/conf.php
to match your local file structure
Create file public/version.txt: touch public/version.txt
Add environment variables from file .env
Add database-scripts from file db/warframeHelper.sql
Run npm run updater && npm start
in terminal
.env
should contain SAFE_TO_PUBLISH=true
SQL-scripts are in folder /db
, update /public/conf.php
with credentials
Run npm run updater && npm start
in terminal
Run npm run updater
in terminal to fetch & update data-sources.
Rename .ftpconfig.js.sample
to .ftpconfig.js
Edit .ftpconfig.js
Run npm run publish
in terminal
Test are run using Cypress.io
Tests require file public/setuser.php
with content:
<?php
include_once("conf.php");
$userData = [
"id" => "38373",
"oauth_provider" => "google",
"oauth_uid" => "100000000000000000000",
"uid" => "10000000-0000-0000-0000-000000000000",
"locale" => "en-GB",
"created" => "2020-06-01 01:01:01",
"modified" => "2020-07-01 01:01:01",
"first_name" => "TEST"
];
$_SESSION["userData"] = $userData;
// Set 'Aceltra' as saved data
$saveData = json_decode('["Acceltra"]', TRUE);
$saveData = str_replace('\\', "", $saveData);
$data = $wf->saveData($_SESSION['userData']["uid"], $saveData);