https://github.com/brick/mortar
Skeleton application built on Brick
https://github.com/brick/mortar
Last synced: about 2 months ago
JSON representation
Skeleton application built on Brick
- Host: GitHub
- URL: https://github.com/brick/mortar
- Owner: brick
- License: mit
- Created: 2013-07-29T18:50:39.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2020-10-14T22:02:06.000Z (over 5 years ago)
- Last Synced: 2025-01-10T23:47:31.172Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Mortar
======
Skeleton application for the Brick framework.
How to run it
-------------
First install the dependencies with [composer](http://getcomposer.org/):
cd /path/to/mortar
composer update
### Method 1: using PHP's built-in web server
This is the quickest and easiest way to start playing with the application:
cd /path/to/mortar/public
php -S localhost:8000 index.php
Just point your browser to `http://localhost:8000/` and you should get the welcome page.
### Method 2: using Apache
To host permanently the application on your development machine, create a virtual host in `httpd.conf` pointing to the `public` directory:
ServerName mortar.localhost
DocumentRoot /path/to/mortar/public
# This ensures that the .htaccess directives will be taken into account
AllowOverride All
Restart Apache, then create an entry for this virtual host in your [hosts file](http://www.rackspace.com/knowledge_center/article/how-do-i-modify-my-hosts-file):
127.0.0.1 mortar.localhost
Now point your browser to `http://mortar.localhost/` and you should get the welcome page.