project dylanstest
A test project assigned to Dylan Johnson
lgstest/dylanstest
A test project assigned to Dylan Johnson
- Thursday, September 19, 2013
- by lgstest
- Repository
- 1 Watchers
- 0 Stars
- 7 Installations
- JavaScript
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Dylan's LGS Test
The following requirements should be met by this repository:, (*1)
- Use the Symfony2 Standard edition, but replace Doctrine with Propel ORM
- Specify user roles as defined by Peter Kartawidjaja.
- Upon login, redirect users to a page specific to their roles
- Prevent unauthorized access to role pages
Installation
- Packagist/Composer: this project can be installed by running
php composer.phar create-project -s dev lgstest/dylanstest /path/to/root
- Download: simply click the download button at the top of the repository.
Use
- If you downloaded the repo instead of using Composer, install requirements:
php composer.phar install
- Check configuration: change the mysql user/password to appropriate settings for your
system. DO NOT change the secret, as it will cause the Propel Fixtures to break.
- Move into the root
cd /path/to/root
-
IMPORTANT: To allow the Propel Fixtures to load, because they do not support classes,
you need to edit the schema in the FOSUserBundle. Go to
/root/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Resources/config/propel/schema.xml
and add last_login
after password_requested_at
on line 37. (I know this is a hack; c'mon, I only worked for a couple hours on it)
- Build the models:
php app/console propel:build
- Build the SQL:
php app/console propel:sql:build
- Create Database:
php app/console propel:database:create
- Insert the tables:
php app/console propel:sql:insert --force
- Install fixtures:
php app/console propel:fixtures:load
- Refer to email from Dylan about usernames and passwords for various roles.
dev-master
9999999-dev
A test project assigned to Dylan Johnson
Sources
Download
MIT
The Requires