Git Product home page Git Product logo

sourcemod-server-manager-system's Introduction

[WIP] Sourcemod Server Management System

The Sourcemod Server Management System is a PHP based web application designed to ease the never-ending battle of managing your Sourcemod servers on either Windows or Linux based machines. SSMS authenticates using your Steam account and provides full access control to all of your users.

This tool is based on Snelvuurs original SSMS.

This tool is still in development

Installation

Server Requirements

Your web server must have the following minimum requirements:

  • PHP Version >= 5.4
  • MCrypt PHP Extension
  • OpenSSL PHP Extension
  • cURL PHP Extension
  • Apache mod_rewrite installed/enabled
  • Database (SQL, SQLite)
CLI Installation via Git (prefered method)

Installation via the command line requires a few tools to be installed on your environment:

Start off by cloning the repository into your web directory:

git clone https://github.com/Ehesp/Sourcemod-Server-Manager-System.git

In the root of your cloned directory, run the following Composer command to install the tools dependancies:

composer install

Once this command has completed, a bower install command will automatically fire to download the applications assets.

Ensure your storage directory is readable, writeable and executable:

This applies to Unix/Linux based machines only.

chmod -R 777 app/storage

Packaged Installation

TO DO: Instructions on FTP zip upload

Environment & Database Configuration

Environment Setup

This tool provides a simple way to setup different working environments. By default the application is set to local development, and thus any configuration options within app/config/local override the defaults within app/config. Feel free to set the environment to another name such as development with your own config overrides in app/config/development. N.B. testing is already in use by the Laravel Framework.

To set the environment into production mode (if on a live webserver), you need to set a PHP environment variable named ENV to production. This can either be done via the virtual host or in the public/.htaccess, simply add SetEnv ENV production.

Database Setup

First, ensure you have a database setup with connected user privilages and details to hand.

To keep your sensitive details out of the application (incase you push your own version to a git based service), the database details are loaded from an environment file, which git ignores. These files are located in the root of your application, with the naming convention of .env.*.php. For example in local environment, the file will be named .env.local.php.

In production, the file is named .env.php.

There are two ways to configure this file; the advised way by running the php artisan ssms:config command, or manually creating the file yourself with the following content:

<?php

	return array(
	    'database.host' => 'localhost',
	    'database.name' => 'ssms',
	    'database.user' => 'root',
	    'database.password' => 'mypassword',
	);

?>
Database Migrations via CLI

The application has a quick installer using the command line. In the root of the application, input the command:

php artisan ssms:install

Follow the instructions to setup your database migrations and seed data.

This file requires a database config file for the current environment!

Database Migrations via SQL

If you're unable to setup your database via the artisan CLI, run the following SQL file in your database to create the tables needed for the application:

TO DO: Setup raw SQL commands

Credits

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.