/rpg

Laravel ( PHP ) MMORPG (MMO) - Online Role Playing Game based on Laravel 5

Primary LanguagePHP

Online Role Playing Game based on Laravel PHP Framework

###Table of Contents###

  1. Requirements
  2. Installation
  3. Running in development environment
  4. License

Requirements (for local development)

Installation

  • Clone the repo

      git clone https://github.com/mchekin/rpg.git rpg
    
  • Navigate to the project folder

      cd rpg
    
  • Run composer install to import the dependencies and enable auto-loading

      composer install
    
  • Create .env file from the .env.example file

      cp .env.example .env
    
  • Generate Laravel Application key

      php artisan key:generate
    
  • Assign the generated key to the APP_KEY in the .env file, like so:

      APP_KEY=<your generated key>
    

Running in development environment

First option: Vagrant (Recommended)

  • Generate local Homestead files

      php vendor/bin/homestead make
    
  • Boot the virtual machine

      vagrant up  
    
  • SSH into the virtual box ( If you are on a Windows machine, you need Git Bash CLI since Windows CLI does not support SSH )

      vagrant ssh   
    
  • Navigate to the project folder inside the virtual box

      cd rpg
    
  • Run Laravel database migrations and seeds

      php artisan migrate 
      php artisan db:seed
    
  • Run PHP build-in development server on the host machine

      php artisan serve  
    
  • Navigate to http://localhost:8000/

Second option: XAMPP

  • Place your project's directory into XAMPP's web root folder (htdocs)

  • Set XAMPP's database credentials and schema to correspond with the database parameters inside .env file.

  • Run Laravel database migrations

      php artisan migrate 
      php artisan db:seed
    
  • Navigate to http://localhost/rpg/public

License

Open-sourced software licensed under the MIT license