flat webapp
the boilerplate flat web package, (*1)
features
- HTML templating
- Front-End Routing (for the HTML template)
- Back-End Routing (for the RESTful API webservice)
directory map
-
/webapp/app/AppRoute/Api "Webservice Routing": starting point of the route map used by the "API" entry point controller, i.e., from the URL http://example.com/webapp/web/api.php/*
- for example...
define a class
MyResource defined in /webapp/app/AppRoute/Api/MyResource.php (using namespace \AppRoute\Api\Resolve in class definition)
- then...
visit the URL
http://example.com/webapp/web/api.php/MyResource, and the api.php entry point controller will instantiate the class named \AppRoute\Api\Resolve\MyResource (from above example)
-
/webapp/app/Resources/design/tmpl/view/: "HTML View Routing": Starting point of the route map used by the "View" entry-point controller
Installation
The easiest way to get going is with a two-step process using Composer and Bower, (*2)
Step 1. Composer 'create-project'..., (*3)
composer create-project katmore/flat-webapp my_project_dir
(copies this repo and configures php dependencies), (*4)
Step 2. Bower update..., (*5)
cd my_project_dir
bower update
(installs static dependencies), (*6)
Copyright
Flat webapp - https://github.com/katmore/flat-webapp, (*7)
Copyright (c) 2012-2017 Doug Bird. All Rights Reserved., (*8)
License
"Flat webapp" is copyrighted free software., (*9)
You can redistribute it and/or modify it under either the terms and conditions of the
"The MIT License (MIT)"; or the terms and conditions of the "GPL v3 License"., (*10)