Giter VIP home page Giter VIP logo

raweb's Introduction

RAWeb

RAWeb is RetroAchievements.org's site and server backend. It is a "flat" PHP project; individual php files within the public folder handle server requests.

Requirements

XAMPP provides an easy way to run an Apache web server, MySQL/MariaDB, and PHP on your system.

Note: Install the XAMPP version packaged with PHP 7.4.

You might have to enable some extensions in php.ini:

extension=curl
extension=mysqli
extension=pdo_mysql

Alternatively, Docker Compose can be used to run MySQL and PHPMyAdmin. See docker-compose.yml for details. Follow the .env file instructions below to configure your environment, then run:

$ docker-compose up -d

Setup

After installing all required software the site needs to be configured for your local needs. The environment configuration file (.env) contains a sensible set of default values.

  1. Copy .env.example to .env.

    Linux/MacOS:

     $ cp .env.example .env
    

    Windows:

     $ copy .env.example .env
    
  2. Adjust the contents of .env to match your local setup:

    • Enter the credentials of you local database instance (DB_*).
    • URL to where index.php can be found (APP_URL).
    • URL to where static assets, like images, are stored (APP_STATIC_URL). Most likely the same as APP_URL in a local environment.
  3. Add image assets:

    Download the media archive and add its files to the respective folders in public.

  4. Install dependencies:

    Use composer provided in this repository...

     $ php composer.phar install
    

    ...or your globally installed instance.

     $ composer install
    
  5. Build the dummy database using the SQL commands in the /database folder. You can use the MySQL CLI (recommended) or the phpMyAdmin GUI.

  6. Open the application in your browser.

Contributing

See the Contribution Guidelines.

License

RAWeb is open-sourced software licensed under the GPL-3.0 License.

raweb's People

Contributors

luchaos avatar meleu avatar mrownership avatar scottfromderby avatar televandalist avatar gdeoo avatar juherr avatar rzumer avatar tsearo avatar krylan avatar gamedragon2k avatar dependabot[bot] avatar kdecks avatar coolcanuck avatar stt avatar fabricecaruso avatar bdjeffyp avatar tallguysfreeadmin avatar lpmi-13 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.