This is the Laravel.IO community portal site. The site is entirely open source and community involvement is not only encouraged, but required in order to ensure the future success of the project.
We use Laravel Homestead for local development. Please review the Homestead documentation to install it.
In order to compile stylesheets you will also need Ruby, Sass, and Compass installed.
Here are the steps for installation on a local machine.
-
Make sure you have Laravel Homestead installed.
-
Clone this repository.
git clone [email protected]:LaravelIO/laravel-io.git laravelio/ cd laravelio/ -
Add the path for the cloned laravel.io repository to the
Homestead.ymlfile under thefolderslist. -
Add a site
lio.locfor the laravel.io repository to theHomestead.ymlfile under thesiteslist. -
Run
vagrant provisionin your Homestead folder. -
Create a database in Homestead called
laravelio. -
SSH into your Homestead box, go to the laravel.io folder and run
./update_environment.sh. -
Add
127.0.0.1 lio.locto your computer'shostsfile.
You can now visit the app in your browser by visiting http://lio.loc:8000/.
Now, we must install the oauth configuration.
-
Create an application in your github account called something like "Laravel IO Development" and add your GH application's client id and secret to this config file. Your GitHub Application should be set up as follows:
a. Full URL: http://lio.loc:8000
b. Callback URL: http://lio.loc:8000/login -
Create the configuration file below at app/config/packages/artdarek/oauth-4-laravel/config.php
<?php
return [
'storage' => 'Session',
'consumers' => [
'GitHub' => [
'client_id' => 'YOUR_NEW_CLIENT_ID_HERE',
'client_secret' => 'YOUR_NEW_CLIENT_SECRET_HERE',
'scope' => ['user'],
],
],
];Because we keep the generated / minified css out of the repository, we must have a workflow for compiling the styles.
- Be sure you have Ruby, Sass, and Compass installed on your machine
- When running any compass command in the terminal, be sure to run it from your
/publicfolder. - Compass is the tool used to compile Sass source files into CSS files; you can run
compass compileto run it once, orcompass watchto trigger a script that will watch your Sass files for changes and trigger a new compass compile on each change
Please post proposals in the Github issues before coding up a PR.
