Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

destinygg/website

Repository files navigation

Destiny.gg

Source code for the website www.destiny.gg

Important Notice

As of 10/23/2021 this repository is no longer being publicly maintained. Code in it's current state is left for historic preservation, but will no longer be receiving updates or support.

Inquiries can be submitted via email to contact@destiny.gg

License

See LICENSE.md

Requirements

Building

nodejs Dependency manager

webpack Project builder

composer PHP dependency manager

glue Glue is a simple command line tool to generate CSS sprites

Running

nginx, php 7.1+, mysql 5, Redis

Getting Started

Create the configuration file "config/config.local.php" and override what you need.

Create and load the database using destiny.gg.sql

Dependencies

Then download and install glue and composer.

Install the node dependencies

npm install webpack -g
npm ci
composer install -no-dev

You can now build the project.

npm run build

or

webpack -p

Building while developing

webpack -w

or

webpack

Cron job

The retrieval of 3rd party data (e.g. twitter feed) is run through a php script that is polled at a set interval.

If you are running the website locally, you can call this file manually, or setup a cron. ./cron/index.php

php -f ./cron/index.php