Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joseki/sandbox
https://github.com/joseki/sandbox
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/joseki/sandbox
- Owner: Joseki
- License: mit
- Created: 2014-02-28T09:56:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-02T12:18:17.000Z (over 9 years ago)
- Last Synced: 2024-04-18T14:42:08.150Z (9 months ago)
- Language: PHP
- Size: 588 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Sandbox
=======Application skeleton for Nette Framework applications with many additional features:
- LeanMapper ORM included
- Query objects
- auto service registration based on simple Entity-table mapping in neon config
- closure tables
- Phinx database migration including initial script
- Package based directory structure
- separated neon config files for each extension (to clarify these config files)
- less -> css templates written in attribute-selector way in resources/design/
- example for simple testing mechanism using Nette/Tester in tests/Install
======================
using Composer (note that webroot is just a name of a directory where your project will be created. Feel free to change webroot to whatever you like)
```
composer create-project joseki/sandbox webroot
```move to webroot directory
```
cd webroot
```create config.local.neon and add valid credentials to a database layer
```
cp app/config/template/config.local.neon app/config/config.local.neon
vim app/config/config.local.neon
```create SQL tables using Phinx migration tool
```
libs/composer/bin/phinx migrate
```Packages name
=============
In your IDE (PhpStorm, NetBeans or whatever you use), replace all occurencies of MyApplication with whatever is your project name namespace (e.g. Joseki). Also rename app/MyApplication as well (in my case to Joseki).In this skeleton, I use composer to autoload my application scripts in app/ directory the same way as I do with dependecies stored in libs/ (vendor) directory so you need to call:
```
composer update
```That's all folks!