GG.deals clone: CodeIgniter 4 + MongoDB game price tracker
- Full gg.deals-style UI: deal feed with filters, game pages with price history charts, rankings, vouchers, news, prepaids, subscriptions, bundles, franchises, wishlist, API docs - Real data crawlers: * gg:crawl (Steam Store API + GOG Catalog + Epic free games) * gg:catalog (252K game slugs from gg.deals sitemaps) * gg:ggdeals (per-game prices via FlareSolverr session, JSON-LD parsing) * gg:seed / gg:crawl-covers (demo seed + Steam CDN cover art) - 24/7 self-updating scheduler (scripts/scheduler_loop.php, lockfile-protected) - Tailwind v4 dark/light theme, Alpine.js, Chart.js
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
use CodeIgniter\Controller;
|
||||
|
||||
class Pages extends Controller
|
||||
{
|
||||
public function faq(): string
|
||||
{
|
||||
$data = [
|
||||
'pageTitle' => 'FAQ — GG.deals',
|
||||
];
|
||||
|
||||
return view('faq', $data);
|
||||
}
|
||||
|
||||
public function tutorial(string $topic): string
|
||||
{
|
||||
$tutorials = [
|
||||
'activate-steam' => ['How to activate Steam CD key', 'steam'],
|
||||
'activate-gog' => ['How to activate GOG CD key', 'gog'],
|
||||
'activate-epic' => ['How to activate Epic Games CD key', 'epic'],
|
||||
'activate-origin' => ['How to activate Origin CD key', 'origin'],
|
||||
'activate-uplay' => ['How to activate Uplay CD key', 'uplay'],
|
||||
'keyshops-risks' => ['Keyshops — what to know', 'keyshops'],
|
||||
];
|
||||
|
||||
if (! isset($tutorials[$topic])) {
|
||||
throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
$data = [
|
||||
'pageTitle' => $tutorials[$topic][0] . ' — GG.deals',
|
||||
'tutorial' => $tutorials[$topic],
|
||||
'all' => $tutorials,
|
||||
];
|
||||
|
||||
return view('tutorial', $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user