-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started
Quinton Pryce edited this page Feb 15, 2017
·
3 revisions
This section will indicate key concepts and file structure for getting started with this project.
- Overview
-
App/Http/Controllers
- This file folder contains the controllers for the project. Controllers represent the objects that contain functions that can have logic. Usually they will interact with the database.
-
App/file.php
- These files are models that represent entities in the database.
-
Resources/views
- These folders are the page sections that are rendered on request. They are grouped by component and are rendered through controllers.
-
Routes/web.php
- This file contains the routes for our URLs. Each path is mapped to a controller function (ie.
CourseController@showmeans theshowfunction inCourseController.php).
- This file contains the routes for our URLs. Each path is mapped to a controller function (ie.
-
Resources/lang
- Contains a folder for each language the application supports. Application strings should be stored and referenced from the
transfunction (ie.trans('navigation.logout')in a template means to look fornavigation.php. These files are just arrays with the id as the key and the string as the value.).
- Contains a folder for each language the application supports. Application strings should be stored and referenced from the
- Additional Notes
- To use the log in functionality you must set up a local database on your system:
cd ~/Code/Laravel
php artisan migrate
-
To register an account go to http://homestead.app/register and make an account (you will need this information to log in after).
-
To load a course page you must give the course id (currently the id is ambiguous) in the url (ie. http://homestead.app/course/1).
-
To load an assignment page you must give the course id and the assignment id(currently the id is ambiguous) in the url (ie. http://homestead.app/course/1/assignment/2).