Skip to content
This repository has been archived by the owner. It is now read-only.


Switch branches/tags
This branch is 40 commits ahead of Dobbelsteen:master.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


AppsForX is a package which you can easily fork for organising your own hackaton. It sets up a website based on OctoberCMS comparable to, including several modules such as a Blog, the ability to create Events, Sessions and Speakers, and a Twitter Wall.


  • Apache
  • PHP 5.6+
  • Some form of SQL database
  • mod rewrite

Getting started

Step 0: clone repository

After cloning or downloading the repository, you can get started.

Step 1: Run composer

First, you’ll want to update the composer requirements. Fetch the repository, and navigate to the directory that contains the repository

composer install

Step 2: Install dependencies

npm install

bower install

Step 2: Configure database settings

For your local development server, you’ll want to change the config/database file to your connection information.


If you want to work with SQLite, create the database.sqlite file in your storage folder.

Step 3: Creating some necessary folders

In the storage/cms folder, check if the following folders exist:

  • cache
  • combiner
  • twig

If they do not exist, create these folders but don't put anything in them.

Step 4: Migrate the database

php artisan october:up

Step 5: Write access

The following directories need to be writable (make sure they exist!):

  • app/storage
  • themes
  • uploads

Terminal commands:

chown -R root:www-data app/storage
chown -R root:www-data themes
chown -R root:www-data uploads

chmod -R 775 app/storage/
chmod -R 775 themes
chmod -R 775 uploads

Step 6: Default credentials

You can now access your webpage from the root of your project, and the backend via root/backend

Default credentials are:
Username: admin
Password: admin

It is advised you change these ASAP.

Step 7: Configure Twitterwall

To configure your Twitterwall, go to themes/appsforghent/assets/vendor/Tweetie/api/config.example.php

There, fill out your Twitter developer details: consumer_key, consumer_secret, access_token, access_secret

Finally, rename the file to config.php


AppsForX Modules

There are 5 types of entities that are used by the AppsForX module:

  • Events: An event is comparable to the edition of your Hackathon for example (2014, 2015, ...)
    • id
    • name
    • start_date
    • end_date
    • description
    • slug
  • Locations: Locations are used when your event has multiple locations where Sessions are happening at the same time.
    • id
    • name
    • description
  • Sessions: A session is a single part of your event, it is linked to Event, Location and Speaker
    • id
    • name
    • start_time
    • duration
    • niveau enum (Beginner, Intermediate, Expert)
    • type enum
    • location_id
    • event_id
    • slug
    • color
    • is_global
    • content
  • Speakers: Sessions can have speaker(s)
    • id
    • name
    • priority
    • description
    • twitter
    • linkedIn
    • function
    • organisation
    • website
  • Showcases: Showcases are individual applications which you want to show on your website (for example the projects of last year's event)
    • id
    • name
    • priority
    • description
    • team_name
    • team_members
    • datasets
    • url_presentation
    • url_website
    • url_github



This is the component that will return all Events.


This is the component that will return a single Event, along with the Sessions that are linked to it.


Locations don't have a component to render them, as they are only used in conjunction with Sessions.



This component will return ALL of the sessions in your system.


This component will return a single Session in your system, based on the slug, along with extra nformation such as location and speakers for that particular Session.



This component will return all the Speakers in your system.



This component will return all the Showcases in your system.

The template for each of these components can be found in the folder within plugins/teamswag/appsforx/components/component-name/default.htm
In order to call a component in a view, all you have to do is call the component in your view, along with additional parameters where required.

Example: themes/appsforx/pages/session.htm

title = "Session"       // Title of current page
url = "/session/:slug"  // Route we want to use with parameter slug
layout = "default"      // Base template we want to use
is_hidden = 0           // hide page or not
[ssession]              // Load ssession component (single session)
function onStart()      // This code is ran before the base template is rendered, allowing us to define certain variables in the template as well.
    $this['page_title'] = 'Session';
    $this['header_bg'] = '/assets/banners/gewoon/banner-26.png';
<!-- HTML Starts here -->
<div class="content">
    {% component 'ssession' %}

With this piece of code on top of your page, the application will know which modules to load, as well as (in this case), which Session should be loaded, based on the slug.

{% component 'ssession' %} this piece of code will call the template of the component, in this case found in plugins/teamswag/appsforx/components/ssession/default.htm

Other components are all analogue with this method.

Rainlab Blog Module

AppsForX makes use of a slightly modified version of the Rainlab Blog Module, for this reason it is advised to not upgrade the Blog module if you want to retain the (albeit little) extra functionality.

The key difference is that a blogpost can be linked to a certain Session, for the rest it is pretty much the default Rainlab Blog plugin with a modified theme.

Step 8: Making your own theme

If you want to make your own theme, feel free to do so! You can save this theme in the themes folder. Feel free to make a copy of apps-for-x-blue, change the name and tinker somewhat in it. Don't forget to put up gulp watch in your terminal.

The only remark here is that you should not forget to update the gulpfile to make sure the correct paths are referenced, as it is currently set for the apps-for-x-blue theme.


Organize your own hackathon with the Apps for X framework







No releases published


No packages published


  • PHP 40.0%
  • CSS 37.2%
  • HTML 18.7%
  • JavaScript 3.8%
  • ApacheConf 0.3%