kinetise / alterapi-skeleton
Base backend for kinetise apps
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Language:HTML
Type:project
Requires
- dflydev/doctrine-orm-service-provider: ~1.0
- igorw/config-service-provider: ^1.2
- jms/serializer: ^1.0
- monolog/monolog: ^1.17
- silex/silex: ^1.3
- silex/web-profiler: ^1.0
This package is not auto-updated.
Last update: 2024-04-17 08:03:04 UTC
README
Welcome to Alterapi Skeleton - a base backend source for Kinetise apps.
Requirements:
- PHP >= 5.4.0
- SQLite
- Apache
How to start?
AlterApi Skeleton uses Composer to ease the creation of a new project:
$ composer create-project kinetise/alterapi-skeleton path/to/install -s dev
Composer will create for you a new project under path/to/install
Next you need to setup a Apache Virtual host pointing to path/to/install/web
<VirtualHost *:80>
ServerName alterapi.skeleton.dev
## Vhost docroot
DocumentRoot "path/to/install/web"
## Directories, there should at least be a declaration for path/to/install/web
<Directory "path/to/install/web">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Require all granted
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
#RewriteBase /path/to/app
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</IfModule>
</Directory>
## Logging
ErrorLog "/var/log/apache2/alterapi.skeleton.error.log"
ServerSignature Off
CustomLog "/var/log/apache2/alterapi.skeleton.access.log" combined
## Custom fragment
SetEnv APP_ENV dev
SetEnv APP_DEBUG true
</VirtualHost>
Base backend collect logs and create some cache files. You need to create a directories for logs and cache files:
$ cd path/to/install
$ mkdir -p var/{cache,logs}
Your apache user must have permissions to write files under "var" directory.
Last step is creating SQLite database:
$ cd path/to/install
$ php app/console orm:schema-tool:create
For more information you can browse tutorial included inside:
http://alterapi.skeleton.dev/tutorial
Enjoy!