GitXplorerGitXplorer
l

context

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
7b74f9cfde5f2e324d1592bddf17b8f649215c58

Merge branch 'parent_child'

lleinelissen committed 8 years ago
Verified
654e33191f2450b1595073c86faaa7d3b21599d0

Enable chat creation for the 'Message Parent'-button

lleinelissen committed 8 years ago
Verified
045432c73b931722287717a11a2c852ec8e8b500

Associate parents correctly with children and hide them from search

lleinelissen committed 8 years ago
Verified
2116ff1121cb347eee3a03e9016e6d6dca13a50c

Initial stub for creating parent_child relationships

lleinelissen committed 8 years ago
Verified
71950717b6d1b2ae1097b9115f6fe96a62abbfe2

Introduce fake Message Parent button

lleinelissen committed 8 years ago
Verified
8c314f9744a6ddd03bdd3482f96ba5d393d71706

Change session settings, so that sessions expire later

lleinelissen committed 8 years ago

README

The README file for this repository.

Context is an instant messaging app for schools.

 

How does it work?

Context is built upon the beautiful Laravel framework. It relies heavily upon the Laravel ecosystem to get things going.

 

How do I set it up?

This package primarily includes the code and install scripts. It is recommended to start a virtual server over at DigitalOcean or Linode and setup from there.

Prerequisites

  • Apache or Nginx
  • PHP 7.0 or higher
    • php-mbstring
    • php-zip
    • php-dom
  • Either, MySQL, MariaDB or Postgres
  • Redis
  • Node.JS
  • Yarn
  • Composer

Setup

  1. Git clone this repository in your web root
  2. Copy .env.example to .env and change its contents to match your web server setup.
  3. Call composer install from the command-line to install all required PHP packages.
  4. Call yarn install from the command-line to install all required Node packages.
  5. Call npm run prod to compile all views, Javascript and CSS.
  6. Call ./node_modules/.bin/laravel-echo-server init to setup the Websockets server
  7. Call php artisan key:generate, php artisan optimize and php artisan passport:install to setup Laravel for operation.
  8. Call php artisan migrate to setup your database for use with Context.
  9. That's it! Have fun with your Context install.

Running the Laravel Echo server

In order for the server to be able to send push notifications, we need the Laravel Echo server to be running. The server can be started by ruunning ./node_modules/.bin/laravel-echo-server start.

However, to run this command as the logged in user is just bad practice. So to make sure the server start with the system, we use Forever:

  1. Install forever by calling yarn global add forever
  2. Call forever start ./node_modules/.bin/laravel-echo-server start

Notes

  • Ensure that your server either has 2GB of RAM available or has swap enabled. Webpack requires this in order to compile its assets.