#Project 3
##Live URL http://p3.harvard-dwa15.me
##Description This site allows the user to generate random filler text and/or random users. Such data is commonly used to simulate the user experience and/or test websites in the development process.
##Demo I will demonstrate my P3 in section on Friday.
##Details for teaching team
Susan reviewed the structure of my project in its first incarnation, cloned it and provided me with an example of how I might restructure more efficiently. That example is here. After reviewing this example, I restructured my project, replacing what were previously logic php files with classes, creating controllers, and making my blade files more reusable with increased use of variables.
I imported the recommended packages for this project:
* badcow/lorem-ipsum
* fzaninotto/faker
Here is a list of the new folders and files I created within my Laravel framework for this application:
#####Created folders:
* p3/app/classes
* p3/public/css
* p3/public/images
#####Created files (ex images):
######* In folder: p3/app/classes * Warnings.php * Filler.php * User.php
######* In folder: p3/app/controllers * FillerController.php * UserController.php
######* In folder: p3/public/app/views * _master.blade.php * _child.blade.php (extends _master) * welcome.blade.php (extends _master) * error.blade.php (extends _master) * fillertext.blade.php (extends _child) * randomusers.blade.php (extends _child)
######* In folder: p3/public/css * stylesheet.css
Note that this file list does not include the built-in Laravel framework files that I modified (e.g. .gitignore, app.php, etc.).
#####View hierarchy:
master | _master.blade.php | _master.blade.php | _master.blade.php | _master.blade.php |
---|---|---|---|---|
child | _child.blade.php | _child.blade.php | welcome.blade.php | error.blade.php |
grandchild | randomusers.blade.php | fillertext.blade.php |
##Outside code and source material
In _master.blade.php, I call in the Bootstrap CSS stylesheet (version 3.2.0).
#####Image sources: