___ _ _ //
|_ _|_ __ ___| |_ __ _ _ __ | |_ ___ .∩∩.//
| || '_ \/ __| __/ _` | '_ \| __/ _ \ .∩∩∩∩.
| || | | \__ \ || (_| | | | | || __/ \ ) /
|___|_| |_|___/\__\__,_|_| |_|\__\___| \_____/
-
install skeleton using composer:
composer create-project instante/skeleton .
-
customize this readme.md to correspond to your new project (and remove this "Create new application" section)
-
use bin/deployment/init-project.php to initialize your new project or customize composer.json, frontend/package.json, frontend/bower.json with your own project name, description, license etc.
-
initialize new git repository in project's folder:
git init bin/git/setup-git.{cmd|sh} git add . git commit -m "initial commit"
- install dependencies by executing
composer install
from project root - Ensure that the database schema exists and is empty. Optionally, you may create one extra database schema for tests.
- Ensure that the www server has write access to these folders
- temp
- log
- setup local environment using bin/deployment/deploy-project.php
install node.js, then use shell commands:
# setup
# install grunt CLI and bower as global node.js module
your-project/frontend$ npm install -g grunt-cli
your-project/frontend$ npm install -g bower
# install local grunt packages
your-project/frontend$ npm install
# start watchdog
your-project/frontend$ grunt
the watchdog starts to automatically compile less and js on any change.
To install new dependency - library:
- add the dependency to composer.json
- run
composer update --lock
- the --lock parameter preserves versions of other libraries.