- mysql
- PHP 5.6+ with
ext-exif
andimagick
extensions
Run the following:
git clone https://github.com/astranchet/pamplemousse.git
cd pamplemousse
curl -s http://getcomposer.org/installer | php
php composer.phar install
cp config/app.yml.dist config/app.yml
Create database (see app.yml
for parameters) then run migrations:
./bin/doctrine migrations:migrate
Edit config/app.yml
:
- Create upload dir (
web/upload
by default) - Configure
database
parameters - Configure
users
(see Tools) - Configure homepage with
site
parameters - Configure photo filters with
kids
andtags
parameters
php -S localhost:8000 -t web .router.php
compass watch
Run migration on your server:
./bin/doctrine migrations:migrate
Generate migration template file with:
./bin/doctrine migrations:generate
Generate encoded password:
./bin/generate-password
Password: foo
5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg==%
Generate new thumbnails (after changing size for instance):
./bin/generate-thumbnails
Display errrors
- Set
debug:true
inapp.yml
and readlog/app.log
An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory
- Database parameters in
app.yml
are incorrect. Sometimes, locally,127.0.0.1
works better for host thanlocalhost
.
Error when uploading a photo in admin
- Make sure upload dir exists.
- Make sure
ext-exif
andimagick
PHP extensions are installed:
php --modules | grep imagick
php --modules | grep exif
- Composer - http://getcomposer.org/
- Twig - http://twig.sensiolabs.org/
- SASS - http://sass-lang.com/install
- Compass - http://compass-style.org/
- Bootstrap - http://getbootstrap.com/
- HTML5 boilerplate - http://www.initializr.com/
- Photoswipe - https://photoswipe.com/
- Masonry - https://masonry.desandro.com/
- Dropzone.js - http://www.dropzonejs.com/