#Netizens project
Require:
composer global require laravel/installer- run
php composer.phar install - create
database.sqlitein database dir - run
php artisan migrate migrate:fresh
#Use app
-
picture:
php artisan picture:importimport all pictures and if exists overwrite--overvrite- overwrite pictures--only_new- import only new or changed pictures
php artisan picture:update {pictureId}- update picture with values:--title=- update title--author=- update author--description=- update description
-
album:
php artisan album:delete {albumId}- delete album with picturesphp artisan album:delete_pictures {albumId}- delete all pictures from albumphp artisan album:show {albumId}- show album with related picturesphp artisan album:update {albumId}- update album with values:--name=- update name
#API
Run php artisan serve to create server. By default http://127.0.0.1:8000
/api/pictures- return json with all pictures