{"id":21047982,"url":"https://github.com/logicandtrick/twhl","last_synced_at":"2025-06-24T21:36:51.137Z","repository":{"id":29092053,"uuid":"32621261","full_name":"LogicAndTrick/twhl","owner":"LogicAndTrick","description":"TWHL Website","archived":false,"fork":false,"pushed_at":"2025-05-04T04:30:09.000Z","size":18705,"stargazers_count":10,"open_issues_count":8,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T19:41:14.507Z","etag":null,"topics":["community-website","half-life","laravel","mysql","php"],"latest_commit_sha":null,"homepage":"http://twhl.info","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LogicAndTrick.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-03-21T05:30:14.000Z","updated_at":"2025-05-04T04:30:13.000Z","dependencies_parsed_at":"2024-10-31T09:18:19.436Z","dependency_job_id":"151c1eb7-c8a7-4ae0-a87f-4bd182cc56a2","html_url":"https://github.com/LogicAndTrick/twhl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LogicAndTrick/twhl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogicAndTrick%2Ftwhl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogicAndTrick%2Ftwhl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogicAndTrick%2Ftwhl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogicAndTrick%2Ftwhl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LogicAndTrick","download_url":"https://codeload.github.com/LogicAndTrick/twhl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogicAndTrick%2Ftwhl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261760056,"owners_count":23205654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["community-website","half-life","laravel","mysql","php"],"created_at":"2024-11-19T14:41:29.299Z","updated_at":"2025-06-24T21:36:51.084Z","avatar_url":"https://github.com/LogicAndTrick.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## TWHL Website\n\nTWHL is a mapping and modding resource website for Half-Life 1 and related games.\n\n- [Visit twhl.info](http://twhl.info)\n\n### Getting a dev environment set up\n\nTWHL4 uses the [Laravel](http://laravel.com/) framework. Detailed instructions can be found\nin the Laravel docs, but here's the basic steps:\n\n1. If you know how to use Docker, see the [docker-for-development](docker-for-development/readme.md) folder and skip many of the following steps.\n2. Get an Apache environment with MySQL/MariaDB (5.5+) and PHP (8.4+)\n   - The easiest way to do this is to download [WampServer](https://wampserver.aviatechno.net/?lang=en)\n   for your platform and follow the install instructions.\n   - Put the **php**/**php.exe** executable path into your system's environment variables\n   - Make sure you're using the right php version, OSX and some linux distros will ship\n   with a different version.\n3. Install [Node JS](https://nodejs.org/) for your platform\n4. Install [Git](https://git-scm.com/) for your platform\n   - If you're on Windows or OSX and aren't used to command line Git, you can install\n   [SourceTree](https://www.sourcetreeapp.com/) which is pretty handy. There's other options too such as GitKraken, GitHub Desktop, etc.\n5. Install [Composer](https://getcomposer.org/) for your platform\n6. Clone the twhl repo using Git\n   - Make sure the repo folder has the correct read \u0026 execute permissions\n7. In the repo's root folder, install the app dependencies using Composer by running:\n   `composer install`\n8. Add a virtual host to your Apache config, these instructions assume your repo is\n   at `C:\\twhl`, change the path for your system as required.\n   - If you're using WampServer:\n     - Go to http://localhost and click 'Add a virtual host'\n     - Name = twhl\n     - Path = C:/twhl/public\n     - Select YES for PHP in FCGI mode and select PHP 8.4 as the version\n       - You may need to follow the instructions on the page to set up FCGI mode\n     - Click the 'Start the creation of the virtual host' button\n     - This will create a host on your local machine at http://twhl/\n   - If you want to use a different host name or port, or if you're using a different\n       Apache setup, you can manually edit the `httpd.conf` file for your server. Here's an\n       example that will host the site at http://localhost:82/:\n       ```\n       Listen 82\n    \n       \u003cVirtualHost *:82\u003e\n           ServerName localhost\n           DocumentRoot C:/twhl/public\n           \u003cDirectory C:/twhl/public\u003e\n               Options Indexes FollowSymLinks Includes ExecCGI\n               AllowOverride All\n               Require all granted\n           \u003c/Directory\u003e\n       \u003c/VirtualHost\u003e\n       ```\n9. Start up your web server and run Apache and MySQL (or MariaDB, whatever), and then get into\n   PhpMyAdmin. Create a database called `twhl` with the collation `utf8mb4_unicode_ci`.\n10. We're almost there. Find the `.env.example` file in the root folder, and copy it to\n    a new file called simply `.env`. The default settings should be fine, but you can\n    change them if you have a different setup for your DB server and so on.\n     - After creating the .env file, you should run `php artisan key:generate` in order to\n       create an encryption key.\n11. At this point, [http://twhl/](http://twhl/) should give you the\n   Laravel splash screen. If it doesn't, something's gone wrong. Otherwise, carry on...\n12. In the git repo root folder, run:\n    - `php artisan migrate --seed`\n    - `npm install`\n    - `npm run development`\n13. Hopefully, you're done! Go to [http://twhl/auth/login](http://twhl/auth/login)\n   to log in. User: `admin@twhl.info` // Pass: `admin`.\n\n### Working with Laravel\n\nSome general notes if you're not used to Laravel/Composer:\n\n- If `composer.json` (or `composer.lock`) changes, run `composer install` to get the latest library versions.\n- Run `composer self-update` if it nags you, it's a good idea to stay up to date.\n- When making changes to `*.css`, `*.scss` and `*.js` files, you need to run `npm run development` to bundle\n  those changes into the compiled CSS and JS files. The easiest way to do this is to run\n  `npm run watch`, which will watch the files for changes and auto-build when needed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicandtrick%2Ftwhl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicandtrick%2Ftwhl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicandtrick%2Ftwhl/lists"}