2015-05-06 10:58:55 +02:00
|
|
|
GIST
|
|
|
|
====
|
|
|
|
|
|
|
|
GIST is an open-source application to share code.
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
|
|
|
* PHP >= 5.4
|
|
|
|
* GIT
|
2015-05-09 17:42:53 +02:00
|
|
|
* MySQL, PostgreSQL or SQLite
|
2015-05-06 11:04:38 +02:00
|
|
|
* Composer (php)
|
|
|
|
* Bower (node)
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
2015-05-06 11:10:26 +02:00
|
|
|
$ git clone https://gitlab.deblan.org/deblan/gist
|
|
|
|
$ cd gist
|
2015-05-06 10:58:55 +02:00
|
|
|
$ make
|
2015-05-09 17:42:53 +02:00
|
|
|
$ mv propel-dist.yaml propel.yaml
|
|
|
|
$ # EDIT propel.yml (dsn)
|
|
|
|
$ make propel
|
|
|
|
|
|
|
|
### Git
|
|
|
|
|
|
|
|
Git can maybe be downloaded from your system's repositories.
|
2015-05-06 10:58:55 +02:00
|
|
|
|
2015-05-06 23:05:51 +02:00
|
|
|
$ git config --global user.email "you@example.com"
|
|
|
|
$ git config --global user.name "Your Name"
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
### Composer
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
Composer can maybe be downloaded from your system's repositories.
|
|
|
|
Else, follow the next instructions:
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
#### Download
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
# 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]`.
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
#### Executable
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
mv composer.phar composer
|
|
|
|
chmod +x composer
|
|
|
|
|
|
|
|
Use it with `./composer [arguments]`.
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
#### Install
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
Assuming `~/bin` exists ans is in `$PATH`.
|
|
|
|
|
|
|
|
mv composer ~/bin
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
#### Dependencies Installation (from `composer.lock`)
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
composer install
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
#### Dependencies Update (will change `composer.lock`)
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
composer update
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
### Bower
|
|
|
|
|
2015-05-06 10:58:55 +02:00
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
#### Install
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
npm install -g bower
|
|
|
|
|
2015-05-10 01:59:30 +02:00
|
|
|
#### Dependencies Installation (from `bower.json`)
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
bower install
|
|
|
|
|
2015-05-10 02:00:04 +02:00
|
|
|
#### Dependencies Update
|
2015-05-06 10:58:55 +02:00
|
|
|
|
2015-05-10 01:59:30 +02:00
|
|
|
bower install
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
Makefile
|
|
|
|
--------
|
|
|
|
|
|
|
|
A Makefile is provided to automate some tasks.
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
* `make` will install application's dependencies via Composer and Bower,
|
2015-05-06 10:58:55 +02:00
|
|
|
* `make optimize` will run Composer's autoloader dump script with classmap
|
2015-05-09 17:42:53 +02:00
|
|
|
* `make update` will update the application
|
|
|
|
* `make propel` will generate propel's files
|