Skip to content

thesoftwarefactoryuk/SenNetwork

 
 

Repository files navigation

Sententiaregum

Join the chat at https://gitter.im/Ma27/SenNetwork

####Build: Build Status

####Code Quality Scrutinizer Code Quality SensioLabs Insight Codacy Badge Code Coverage

  1. What is sententiaregum

Sententiaregum is a project which combines BackboneJS/ReactJS and Symfony2 in order to build a social network with a great UX.

The frontend contains an angular Single Page Application (=SPA) and is styled with Foundation5. The backend is built with Symfony2 and is a large REST API using FOSRest.

  1. Contribute

You can install sententiaregum locally in order to contribute on this project.

Clone repository

git clone https://github.com/Ma27/SenNetwork.git /path/to/folder

Starting the machine

rake vagrant:up[true]

If you don't want to destruct the whole machine, you just need to execute

rake vagrant:up[false]

Accessing the SSH interface of the development machine

rake vagrant:ssh

Install application (inside SSH interface)

cd /var/www/sententiaregum
sudo rake deploy:up[true,true]

Now you can start contributing!

Full test

rake test:all

In order to access the application via a browser, please configure your /etc/hosts file:

192.168.56.112 sententiaregum.dev

In order to use the application, type the following in your browser:

sententiaregum.dev
  1. Deploy

####Requirements

  • PHP 5.5 or higher
  • Bower
  • Compass
  • Node (for uglify and other tools)
  • MySQL 5.5
  • Composer
  • Imagick extension for PHP
  • WebSockets

####Installation Symfony requires some specific server configuration in order to work properly: Symfony2 Server configuration

The deployment is similar to the local installation but it doesn't use the vagrant environment:

Install repository

git clone -b <branch name> https://github.com/Ma27/SenNetwork.git /path/to/webroot

Execute rake tasks

rake deploy:up[false,false]

Now your installation is deployed on the server and ready to use.

Update application

rake deploy:modify
  1. Jobs

There are some jobs that can be helpful for you:

####Api Key Purger This job removes all api keys that weren't in use for at least two days.

#####Register

crontab -e
@midnight /usr/bin/php /path/to/sententiaregum/app/console sen:auth:delete-api-keys

####Old User Purger This job removes all old users that didn't activate themselves

####Register

crontab -e
@midnight /usr/bin/php /path/to/sententiaregum/app/console sen:user:purge-outdated-users

About

Sententiaregum is a social network based on Symfony2 and BackboneJS/ReactJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 71.7%
  • JavaScript 20.4%
  • Puppet 3.2%
  • HTML 1.9%
  • Ruby 1.6%
  • ApacheConf 0.5%
  • Other 0.7%