-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add local installation and running the tests instructions in readme
- Loading branch information
1 parent
a4a87e0
commit 63e8b3a
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,40 @@ Create an issue - [https://github.com/Laravel-Philippines/LaravelPH-Website/issu | |
Please read through our [contributing guidelines](https://github.com/Laravel-Philippines/LaravelPH-Website/blob/master/CONTRIBUTING.md). | ||
|
||
### Local installation | ||
Coming soon... | ||
Here are the steps for installation on a local machine. | ||
|
||
1. Make sure you have [Laravel Homestead](http://laravel.com/docs/homestead) installed. | ||
2. Clone this repository. | ||
|
||
``` | ||
git clone [email protected]:Laravel-Philippines/LaravelPH-Website.git laravelph/ | ||
cd laravelph/ | ||
``` | ||
3. Add the path for the cloned laravelph repository to the `Homestead.yml` file under the `folders` list. | ||
4. Add a site `laravelph.local` for the laravelph repository to the `Homestead.yml` file under the `sites` list. | ||
5. Run `vagrant provision` in your Homestead folder. | ||
6. Create a database in Homestead called `laravelph`. | ||
7. Create a file named .env.local.php in the root folder of laravelph repository and copy and paste the code below: | ||
```php | ||
<?php | ||
return array( | ||
'DB_HOST' => 'localhost', | ||
'DB_NAME' => 'laravelph', | ||
'DB_USERNAME' => 'homestead', | ||
'DB_PASSWORD' => 'secret', | ||
); | ||
``` | ||
8. Add `127.0.0.1 laravelph.local` to your computer's `hosts` file. | ||
You can now visit the app in your browser by visiting [http://laravelph.local:8000/](http://laravelph.local:8000). | ||
### Running the tests | ||
Coming soon... | ||
1. Create a database in Homestead called `laravelph_test` | ||
2. SSH into your Homestead box, go to the laravelph folder and run `./vendor/bin/phpunit` |