Giter Site home page Giter Site logo

sonata-base's Introduction

Symfony Sonata Base Project

This is a simple project with a basic Symfony2 setup and several Sonata bundles. If you want a step by step guide, please visit the original post in "http://www.miguelvilata.com/blog/2014/12/17/creando-un-proyecto-base-con-symfony-y-sonata-project"

Installation

Clonación del proyecto

git clone https://github.com/wchemi/sonata-base.git

Update libraries

cd sonata-base && composer install

Generate database and tables

app/console doctrine:database:create
app/console doctrine:schema:update --dump-sql --force

Generate superadmin user for backend access:

app/console fos:user:create admin --super-admin

Virtual host configuration

sudo vim /etc/apache2/sites-available/030-symfony-sonata.conf

update config bases on your system:

<VirtualHost *:80>
  ServerName local.sonatablog.es
  ServerAdmin [email protected]
  DocumentRoot "/var/www/html/test/symfony2-sonata/web"
  <Directory "/var/www/html/test/symfony2-sonata/web">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    allow from all
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ app_dev.php [QSA,L]
    </IfModule>
   </Directory>
</VirtualHost>

Enable the site:

sudo a2ensite 030-symfony-sonata.conf

Finally update you host file in order to resolv configured domain. In a debian system you must open /etc/hosts file.

127.0.0.1       local.sonatablog.es

sonata-base's People

Contributors

wchemi avatar

Stargazers

Miguel Vilata avatar Roberto Pérez avatar

Watchers

 avatar Roberto Pérez avatar

Forkers

miguelvilata

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.