Skip to content

tetreum/erep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1f5106a · May 4, 2017

History

66 Commits
Aug 28, 2016
Aug 22, 2016
Sep 6, 2016
Sep 6, 2016
Sep 6, 2016
Aug 9, 2016
Aug 7, 2016
Aug 6, 2016
May 4, 2017
Aug 9, 2016
Aug 21, 2016
Aug 9, 2016
Aug 14, 2016
Sep 25, 2016
Aug 21, 2016
Aug 7, 2016
Aug 28, 2016

Repository files navigation

eRep

eRepublik clone

Screenshots

Reminder: I don't care about the design, i've only made the backend.

Image Image Image Image Image Image Image Image Image

Finished features

  • Chat
  • Create & work on companies
  • Train
  • Publish/view/vote articles
  • Congress
  • Political parties
  • Storage
  • Sell/buy items
  • Multiple currencies
  • Private messages

Install

  • composer install
  • npm install
  • mv conf.sample.php conf.php
  • grunt
  • import db.sql in your mysql

Requirements

  • PHP >= 7.0
  • MySQL / PostgreSQL (i think db.sql it's in Postgre's format)
  • Friendly urls/mod rewrite
  • gruntjs

Nginx vhost setup example

server {
    listen   80;
    server_name erepublik.dev;

    root /var/www/erepublik/htdocs;
    index index.html index.htm index.php;

    charset utf-8;
    sendfile off;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    ## The "application" requests should be processed by Slim
    location ~ \.php$ {
                try_files $uri =404;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini

                # With php5-fpm:
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
    }
}