Giter VIP home page Giter VIP logo

rpg's Introduction

Online Role Playing Game

Table of Contents

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

Requirements (for local development)

Installation

  • Clone the repo

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

      cd game
    
  • Create .env file from the .env.example file

      cp .env.example .env
    

    On Windows:

      copy .env.example .env
    
  • Run composer install to import the dependencies and enable auto-loading

      composer install
    
  • Generate Laravel Application key

      php artisan key:generate
    
  • Create SQLite database file

      touch database/database.sqlite
    

    On Windows:

      copy NUL database\database.sqlite
    
  • Run Laravel database migrations and seeds

      php artisan migrate --seed
    

Running in local environment

  • Run PHP build-in development server on the host machine

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

  • Enable Laravel Task Scheduling

    1. Open the cron tab file

       crontab -e
      
    2. Add the following line and save

       * * * * * php <path-to-project>/artisan schedule:run >> /dev/null 2>&1
      

    On Windows:

      schtasks /create /sc minute /mo 1 /tn "RPG SCHEDULER" /tr %cd%\scheduler.bat
    

    To disable the annoying command-line pop-up each time the task runs:

    1. Open Windows "Run" dialog by pressing "Windows Key + r"
    2. Enter type "Taskschd.msc" and press Enter. This will open the "Task Scheduler".
    3. In Task Scheduler's "Active Tasks" section find the "RPG SCHEDULER" task and double-click it.
    4. In the left "Actions" panel click "Properties". This will open "Properties" pop-up.
    5. In the pop-up select the "Run whether user is logged in or not" and press Enter. You maybe asked for your Windows user's password to complete the process.

    To remove the scheduled task you can use

      schtasks /delete /tn "RPG SCHEDULER" /f
    

License

Open-sourced software licensed under the MIT license

rpg's People

Contributors

mchekin avatar rachids 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.