Coder Social home page Coder Social logo

prakasha4devops / sandbox-build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codixis/sandbox-build

0.0 3.0 0.0 79.88 MB

The complete Sonata Project Sandbox with vendors

License: MIT License

Shell 1.36% Smarty 0.07% Makefile 0.19% ApacheConf 0.02% PHP 39.84% HTML 1.88% Gherkin 18.45% CSS 22.25% JavaScript 15.95%

sandbox-build's Introduction

Sonata Standard Edition

Codeship Status for sonata-project/sandbox

What's inside?

Sonata Standard Edition comes pre-configured with the following bundles:

  • Bundles from Symfony Standard distribution
  • Sonata Admin Bundles: Admin and Doctrine ORM Admin
  • Sonata Ecommerce Bundles: Payment, Customer, Invoice, Order and Product
  • Sonata Foundation Bundles: Core, Notification, Formatter, Intl, Cache, Seo and Easy Extends
  • Sonata Feature Bundles: Page, Media, News, User, Block, Timeline
  • Api Bundles: FOSRestBundle, BazingaHateoasBundle, NelmioApiDocBundle and JMSSerializerBundle

Quick Installation

The Sonata Project provides a build of the current sandbox to quickly start with the projet.

curl -L github https://github.com/sonata-project/sandbox-build/archive/2.4.tar.gz | tar xzv

Once, you have the file, you can either use

Local Installation

  • Configure default the parameters.yml file: cp app/config/parameters.yml.dist app/config/parameters.yml
  • load the data: php bin/load_data.php
  • You should should be ready to go ...

Vagrant Installation

  • vagrant up --provision --provider=virtualbox (Vagrant is going to get the environnement, install it for you and load sonata sample data)
  • Configure your host sudo nano /etc/hosts and add this line 192.168.33.99 sonata.local
  • Open your browser here

Composer Installation

Get composer:

curl -s http://getcomposer.org/installer | php

Run the following command for the 2.4 develop branch:

php composer.phar create-project sonata-project/sandbox:2.4.x-dev

The installation process used Incenteev's ParameterHandler to handle parameters.yml configuration. With the current installation, it is possible to use environment variables to configure this file:

DATABASE_NAME=sonata DATABASE_USER=root DATABASE_PASSWORD="" php composer.phar create-project sonata-project/sandbox:dev-2.4-develop

You might experience some timeout issues with composer, as the create-project start different scripts, you can increase the default composer value with the COMPOSER_PROCESS_TIMEOUT env variable:

COMPOSER_PROCESS_TIMEOUT=600 php composer.phar create-project sonata-project/sandbox:dev-2.4-develop

Fixtures are automatically loaded on the composer create-project step. If you'd like to reset your sandbox to the default fixtures (or you had an issue while installing and want to fill in the fixtures manually), you may run:

php bin/load_data.php

This will completely reset your database.

Run

If you are running PHP5.4, you can use the built in server to start the demo:

app/console server:run localhost:9090

Now open your browser and go to http://localhost:9090/

Tests

Functional testing

To run the Behat tests, copy the default configuration file and adjust the base_url to your needs

# behat.yml
imports:
    - behat.yml.dist

# Overwrite only the config you want to change here

You can now run the tests suite using the following command

bin/qa_behat.sh

To get more informations about Behat, feel free to check the official documentation.

Unit testing

To run the Sonata test suites, you can run the command:

bin/qa_client_ci.sh

Enjoy!

sandbox-build's People

Contributors

rande avatar

Watchers

James Cloos avatar Prakash A avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.