Giter Club home page Giter Club logo

lapp's Introduction

lapp

======

Build Status SensioLabsInsight

Installation notes:

Install composer and npm

curl -sS https://getcomposer.org/installer | php
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
source ~/.nvm/nvm.sh && nvm install 5.10.1

###give webserver access to cache and logs

$ HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
>$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
>$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs

###create user for mysql

mysql -uroot  -p -e "grant all on lapp.* to lapp@'localhost' identified by 'lapp';flush privileges;"

run composer script to initialize the application

php composer.phar run-script project-init

lapp's People

Contributors

pueppiblue avatar

Stargazers

Robert Freigang avatar

Watchers

James Cloos avatar Robert Freigang avatar  avatar

lapp's Issues

features from CI Issue

  1. include phpunit (see also first test in #6)
  2. include phpmd
  3. include phpcpd
  4. include phpcs (symfony standard or psr2 standard)
  5. include twiglint
  6. include yamllint

composer update

update all used libraries and fix potential update issues

integrate travis

https://travis-ci.org/

main goal is to simple have travis running on each push

Docs:
https://docs.travis-ci.com/user/languages/php
https://www.theodo.fr/blog/2014/03/easy-travis-configuration-for-your-symfony2-tests-using-mysql-database/

If trouble occurs:
http://www.albertcamps.io/testing/travis/symfony2/2015/03/17/travis-ci-issues-on-a-symfony2-private-github-repository.html

optional featues which can be solved but should at least be moved into separate issues (ordered list):

  1. include phpunit (see also first test in #6)
  2. include phpmd
  3. include phpcpd
  4. include phpcs (symfony standard or psr2 standard)
  5. include twiglint
  6. include yamllint

user can delete a book

on /books there is link to a new route /books/delete/{id}
/books/delete/{id} deletes the book entity with the given id
after deletion the user is redirect (302) to /books

user get flash message after an action on book or books

possible actions:
insert a book successfully
edit a book successfully
delete a book successfully
delete all books successfully
load all book fixtures successfully
delete a book failed
delete all books failed
load all book fixtures failed

see for help:
http://symfony.com/doc/current/book/controller.html#flash-messages
http://symfony.com/doc/current/components/http_foundation/sessions.html#flash-messages
https://knpuniversity.com/screencast/symfony2-ep2/flash-message

user can delete all books

on /books there is a link to /books/delete-all
the new route /books/delete-all deletes all books and sends the user to /books with a 302 redirect

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.