Skip to content

rotanov/fefu-social-network

 
 

Repository files navigation

VDolgah Social Network

VDolgah is a social network co-developed by students of B8403a and B8403g groups of the Far Eastern Federal University for educational purpose.

Installation

Requirements

PHP v5.5 or higher. MySQL v5.5 or higher.

Getting Source Files

Install git (http://git-scm.com/) onto your system. Then run a clone:

git clone git://github.com/koninka/fefu-social-network.git

This will download the latest sources into a directory 'fefu-social-network'.

Install Composer

Composer needs to manage dependencies.

If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:

curl -s http://getcomposer.org/installer | php

Then switch to the path/to/fefu-social-network directory:

cd path/to/fefu-social-network

Then, use the install command to install all the necessary dependencies:

composer install

or

php composer.phar install

Install Redis

OS X

brew install redis

Ubuntu:

sudo apt-get install redis-server

Windows:

https://github.com/rgl/redis/downloads

In php.ini enable sockets: extension=php_sockets.dll

Checking your System Configuration

Before starting coding, make sure that your local system is properly configured for Symfony.

Execute the check.php script from the command line:

php app/check.php

The script returns a status code of 0 if all mandatory requirements are met, 1 otherwise.

Access the config.php script from a browser:

http://localhost/path-to-project/web/config.php

If you get any warnings or recommendations, fix them before moving on.

If you still have errors see the Requirements for Running Symfony.

Easy Install

Ubuntu/Debian/Mint

Download installer_linux.sh. Then run installer_linux.sh -h to see more info about usage.

Windows

Download installer.bat and installer.ps1 in directory you want to install the project. Then run installer.bat as Admin.

Note about git: You should be able to use git from Windows Command Promt. If you have git but able to use it from git bash only then you will be prompted to install git again. There you should check Use Git from the Windows Command Prompt option.

Note about php and error with msvcr110.dll: Be sure that you istalled Visual C++ libraries before running script

Enjoy!

Running

To run server change directory to repository root and execute:

php app/console server:start 0.0.0.0:6543

Running sockets

Replace in ./src/Network/WebSocketBundle/Resources/config/sockets.yml in network_web_socket.server section address name on yours.

Then run command:

php app/console websocket:listen default

Running redis

redis_server

or run redis_server.exe on Windows

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.5%
  • PHP 32.3%
  • CSS 3.1%
  • Other 1.1%