Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dkfans/keeperfx-website

Repository files navigation

KeeperFX Website Homepage

KeeperFX Official Website

The KeeperFX website is a modern webapp written in PHP.

The official website is hosted at: https://keeperfx.net

Developer Environment Setup

The current way of developing is mostly focused around Docker. The included Docker Compose file already handles storage and contains the whole stack. The Docker Compose file is used on the official production server so it makes development much easier. You can set up your environment natively but it's highly suggested to just use Docker using the instructions below.

Download the repository:

git clone https://github.com/dkfans/keeperfx-website.git
cd keeperfx-website

Start the containers:

docker compose up -d

Install composer libraries:

docker compose exec -it -u www-data php composer install

Do the database migrations (this sets up the database structure):

docker compose exec -it -u www-data php ./console migrations:migrate

Optional: Create an admin user:

docker compose exec -it -u www-data php ./console user:create <username> <password> admin

Optional: Generate mock data for development

docker compose exec -it -u www-data php ./console dev:generate-mock-data

Optional: Retrieve all kinds of data for different website functionality

docker compose exec -it -u www-data php ./console kfx:pull-repo
docker compose exec -it -u www-data php ./console kfx:handle-commits
docker compose exec -it -u www-data php ./console kfx:fetch-discord-info
docker compose exec -it -u www-data php ./console kfx:fetch-forum-activity
docker compose exec -it -u www-data php ./console kfx:fetch-wiki
docker compose exec -it -u www-data php ./console website:cache-git-commits

Visit the website at: http://127.0.0.1:5500

NOTE:
If you are using a lower-end machine you might want to disable the clamd container as it can eat up to 2GB of RAM. If you wish to not automatically start mirroring all of the game releases and other files you can disable the cron container. You can do so by uncommenting the donotstart profiles in the docker compose file.

Security Issues

If you have found a possible security issue with the KeeperFX website, please contact [email protected] privately. We do not have a bug bounty program but we can publish an acknowledgement on our security acknowledgments page.

About

The official KeeperFX website

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •