https://github.com/tetreum/erep
eRepublik clone
https://github.com/tetreum/erep
clone erepublik php
Last synced: 3 months ago
JSON representation
eRepublik clone
- Host: GitHub
- URL: https://github.com/tetreum/erep
- Owner: tetreum
- License: mit
- Created: 2016-08-06T10:30:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T16:47:46.000Z (about 9 years ago)
- Last Synced: 2025-10-19T08:51:43.505Z (8 months ago)
- Topics: clone, erepublik, php
- Language: PHP
- Homepage:
- Size: 1.02 MB
- Stars: 19
- Watchers: 8
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eRep
eRepublik clone
# Screenshots
Reminder: I don't care about the design, i've only made the backend.









# 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;
}
}
```