GIST is an open-source application to share code. https://gist.deblan.org
Go to file
2015-05-11 21:15:00 +02:00
app Embed 2015-05-09 17:42:33 +02:00
src/Gist Encrypted code: links on flags 2015-05-11 21:15:00 +02:00
web Encrypted code: links on flags 2015-05-11 21:15:00 +02:00
.bowerrc First template 2015-05-04 22:12:26 +02:00
.gitignore readme, gitignore 2015-05-06 23:05:51 +02:00
bower.json Encrypted code embeding, pages titles 2015-05-11 21:06:41 +02:00
composer.json Propel + console 2015-05-06 14:11:00 +02:00
LICENSE Init commit 2015-05-04 20:52:00 +02:00
Makefile Makefile and README 2015-05-10 02:32:24 +02:00
propel-dist.yaml rsync 2015-05-06 22:51:51 +02:00
README.md Makefile and README 2015-05-10 02:32:24 +02:00

GIST

GIST is an open-source application to share code. https://www.deblan.io/post/517/gist-est-dans-la-place

Requirements

  • PHP >= 5.4
  • GIT
  • MySQL, PostgreSQL or SQLite
  • Composer (php)
  • Bower (node)

Installation

$ git clone https://gitlab.deblan.org/deblan/gist
$ cd gist
$ make
$ mv propel-dist.yaml propel.yaml
$ # EDIT propel.yml (dsn)
$ make propel

Screencast: https://asciinema.org/a/19814

Git

Git can maybe be downloaded from your system's repositories.

$ git config --global user.email "you@example.com"
$ git config --global user.name "Your Name"

Composer

Composer can maybe be downloaded from your system's repositories. Else, follow the next instructions:

Download

# With cURL
curl -sS https://getcomposer.org/installer | php

# With Wget
wget -O - -q https://getcomposer.org/installer | php

You can now use it with php composer.phar [arguments].

Executable

mv composer.phar composer
chmod +x composer

Use it with ./composer [arguments].

Install

Assuming ~/bin exists ans is in $PATH.

mv composer ~/bin

Dependencies Installation (from composer.lock)

composer install

Dependencies Update (will change composer.lock)

composer update

Bower

Install

npm install -g bower

Dependencies Installation (from bower.json)

bower install

Dependencies Update

bower install

Makefile

A Makefile is provided to automate some tasks.

  • make will install application's dependencies via Composer and Bower,
  • make optimize will run Composer's autoloader dump script with classmap
  • make update will update the application
  • make propel will generate propel's files