Skip to content

Commit

Permalink
add local installation and running the tests instructions in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnncodes committed Sep 26, 2014
1 parent a4a87e0 commit 63e8b3a
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

0 comments on commit 63e8b3a

Please sign in to comment.