danielbrendel / steamwidgets-web

SteamWidgets Web Backend
https://www.steamwidgets.net
MIT License
5 stars 2 forks source link
steam steam-api steam-app steam-game steam-group steam-player steam-server steam-widgets steam-workshop widgets


SteamWidgets

Embed various Steam widgets in your web document
(C) 2022 - 2024 by Daniel Brendel
Released under the MIT license

web-php db-mysql-redis license-mit maintained-yes

Information

Contact: dbrendel1988(at)gmail(dot)com\ GitHub: https://github.com/danielbrendel

Description

This is the web backend as well as the documentation and resource provider for SteamWidgets. SteamWidgets offers the possibility to comfortably render Steam related widgets into your web document with as little effort as possible.

Current featured widgets

Running the project

  1. Clone the repository

  2. Install the dependencies

    composer install
  3. Create your .env file

    copy .env.example .env
  4. Adjust some environment settings

    
    # Example widget item values
    APP_EXAMPLE_APP=""
    APP_EXAMPLE_SERVER=""
    APP_EXAMPLE_USER=""
    APP_EXAMPLE_WORKSHOP=""
    APP_EXAMPLE_GROUP=""

Steam API key

STEAM_API_KEY="your-key-here"

Database settings

DB_ENABLE=true DB_HOST=localhost DB_USER=root DB_PASSWORD="" DB_PORT=3306 DB_DATABASE=steamwidgets DB_DRIVER=mysql DB_CHARSET="utf8mb4"

Redis settings

REDIS_SCHEME=tcp REDIS_HOST=localhost REDIS_PORT=6379

Caching

CACHE_DRIVER=db CACHE_DURATION=123


5. Run your MySQL server and perform database table migrations
```sh
php asatru migrate:fresh
  1. Now launch your local development server
    php asatru serve

    The application is now available on http://localhost:8000/.

Building the assets

In order to create versioned assets that are publicly accessible you can run a batch script or a dnyScript using AquaShell.

build_ver.bat
aquashell -e build_ver.dnys

The scripts will prompt you for the version you want to create the assets for. Just enter a version token and the assets will then be created/updated using the required file structure.

Documentation

The documenation of the underlying framework is located inside the /doc directory.