mylk / grain-skeleton

A demo application that demonstrates Grain PHP framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grain Skeleton

Creating an application

First, you have to clone the grain-skeleton application:

$ git clone https://github.com/mylk/grain-skeleton.git path/to/install

Since the project is not yet in packagist.org as a package, you can't do something like this:

$ composer create-project mylk/grain-skeleton path/to/install

Assuming you already are in "path/to/install", its time to wipe the grain-skeleton history and start writing your own!

$ cd path/to/install
$ rm -rf .git
$ git init

The next step also assumes that you have Composer installed in a globally accessible directory:

$ composer install

Browsing the skeleton application

You can now use Grain!

To see the skeleton application in action, start the PHP built-in web server:

$ php -S localhost:8080 -t web/ web/app_dev.php

Alternatively, if you have docker and docker-compose installed, you can run the application in a container:

$ docker-compose build
$ docker-compose up

Then, browse to http://localhost:8080/hello/yourname

About

A demo application that demonstrates Grain PHP framework


Languages

Language:PHP 92.3%Language:Dockerfile 6.8%Language:Smarty 0.9%