2017 © Pedro PelĂĄez
 

project sandbox

The "Vince Cms" sandbox

image

vince/sandbox

The "Vince Cms" sandbox

  • Wednesday, September 9, 2015
  • by vincentchalamon
  • Repository
  • 5 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

THIS PROJECT IS NOT MAINTAINED ANYMORE !, (*1)

Sandbox for VinceCms

Total Downloads Latest Stable Version Build Status SensioLabsInsight Coverage Status, (*2)

Installation

Install Composer and run the following command:, (*3)

php composer.phar create-project vince/sandbox path/ -s dev

Configuration

Run the following command to launch ElasticSearch:, (*4)

vendor/elasticsearch/binaries/bin/elasticsearch -f

Once you've created your database, run the following command to build database with default fixtures:, (*5)

php app/console project:reset

This command also publish assets for different project environments., (*6)

You should index your articles to ElasticSearch:, (*7)

php app/console fos:elastica:populate

Deploy

This sandbox has already been capified. Before your first deploy, you must update configuration file:, (*8)

# File: app/config/deploy/development.rb
...
set :domain, "1.2.3.4"
set :user,   "user"

Note: it's not recommended to set user password, prefer use RSA key., (*9)

You can now configure your server through the following command:, (*10)

cap production deploy:setup

Then deploy with the following command:, (*11)

cap production deploy

On deploy, capifony will ask you which version you want to deploy, by default the last tag., (*12)

Developers

For local use, you should catch emails through mailcatcher. You need to update your parameters.yml file as following:, (*13)

parameters:
    ...
    mailer_host: localhost:1025

todo-vince Sandbox

  • [x] Initialization command
  • [x] Google Analytics tracking code (bundle configuration)
  • [x] Default theme
  • [x] Mail theme
  • [ ] Behat
  • [ ] Update travis configuration
  • [ ] Documentation (README + PHPDoc + GitHub pages)

Documentation

Installation

  • [ ] Install with composer
  • [ ] Create database
  • [ ] Run php app/console project:reset
  • [ ] Access to admin (url, login, password)

Configuration

  • [ ] Update config.yml: domain, sitename, tracking_code, no_reply, contact

How to

Developers

  • [ ] Fixtures
    • [ ] Create fixtures in YML
    • [ ] Create templates (& areas)
    • [ ] Create articles (& contents & metas)
    • [ ] Create menus (=> article or url, parent, children)
    • [ ] Create blocks
  • [ ] Deploy (Capifony)
  • [ ] Inject objects in template (listeners)
  • [ ] Process forms (processors)
  • [ ] Advanced
    • [ ] Override entities
    • [ ] Override controllers
    • [ ] Override admin
    • [ ] Catch mail on dev (MailCatcher)
    • [ ] PHPDoc

Designers

  • [ ] Create template
    • [ ] Create twig file
    • [ ] Twig helpers
      • [ ] vince configuration
      • [ ] render_metas
      • [ ] render_meta
      • [ ] render_menu
      • [ ] render_block
      • [ ] localizeddate
  • [ ] Assetic
    • [ ] Bootstrap
    • [ ] Ladda
    • [ ] Autosize
    • [ ] YUI compressor

The Versions