Skip to content

Commit

Permalink
migration to Symfony4
Browse files Browse the repository at this point in the history
  • Loading branch information
songecko committed May 29, 2018
1 parent c685dfa commit 656d51c
Show file tree
Hide file tree
Showing 157 changed files with 13,745 additions and 3,006 deletions.
27 changes: 27 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is a "template" of which env vars need to be defined for your application
# Copy this file to .env file for development, create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=0b72d5306553d80564b493d8451cc5e1
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< symfony/framework-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
###< doctrine/doctrine-bundle ###

FACEBOOK_CLIENT_ID=EDITME
FACEBOOK_CLIENT_SECRET=EDITME
69 changes: 18 additions & 51 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,22 @@
# Bootstrap
/var/bootstrap*
.idea
.DS_Store

# Symfony directories
/build/
/behat.yml
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
/vendor/

/web/bundles
/web/uploads/*
/web/media/*
/web/assets
/composer.lock
/node_modules

# Configuration files
app/config/parameters.ini
app/config/parameters.yml
app/config/*.local.yml
app/config/deploy.rb
behat.yml
/phpspec.yml

###> symfony/webpack-encore-pack ###
/node_modules/
/public/build/
npm-debug.log
yarn-error.log
###< symfony/webpack-encore-pack ###

# eclipse
.externalToolBuilders
.settings
.buildpath
.project

#Others
.idea
.DS_Store
bin/behat
bin/doctrine*
bin/phpspec
bin/webunit
bin/phpunit
bin/phpcrodm
bin/phpcrodm.php
bin/jackalope
bin/phpunit

deploy/deploy.rb
deploy/stages/*.rb
###> symfony/framework-bundle ###
/.env
/public/bundles/
/public/assets/
/public/media/
/var/
/vendor/
###< symfony/framework-bundle ###
38 changes: 4 additions & 34 deletions Gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,7 @@
var gulp = require('gulp');
var chug = require('gulp-chug');
var argv = require('yargs').argv;
var requireDir = require('require-dir');

config_vendor = [
'--rootPath',
argv.rootPath || '../../../web/assets/',
'--nodeModulesPath',
argv.nodeModulesPath || '../../../node_modules/'
];
requireDir('./gulp_tasks');

config_src = [
'--rootPath',
argv.rootPath || '../../../../web/assets/',
'--nodeModulesPath',
argv.nodeModulesPath || '../../../../node_modules/'
];

gulp.task('odiseo-admin', function() {
gulp.src('vendor/odiseoteam/odiseo-admin-bundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config_vendor }))
;
});

gulp.task('client-admin', function() {
gulp.src('src/Client/Bundle/AdminBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config_src }))
;
});

gulp.task('client-app', function() {
gulp.src('src/Client/Bundle/AppBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config_src }))
;
});

gulp.task('default', ['odiseo-admin', 'client-admin', 'client-app']);
gulp.task('default', ['odiseo-admin', 'admin', 'app']);
gulp.task('watch', ['odiseo-admin', 'admin-watch', 'app-watch']);
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
Odiseo Standard Edition
========================

Welcome to the Symfony Standard Edition - a fully-functional Symfony
Welcome to the Symfony Standard Edition - a fully-functional Symfony4
application that you can use as the skeleton for your new applications.

Installation
------------

```bash
sudo php composer.phar create-project odiseoteam/odiseo-standard-edition [path_to_project]
cd [path_to_project]
sudo php composer.phar update
sudo php bin/console doctrine:database:create
sudo php bin/console doctrine:schema:update --force
sudo php bin/console doctrine:fixtures:load
sudo rm -rf var/cache var/logs && sudo mkdir var/cache var/logs && sudo chmod -R 777 var/cache var/logs
sudo npm install
sudo gulp
sudo php bin/console server:start
$ composer create-project odiseoteam/odiseo-standard-edition [path_to_project]
$ cd [path_to_project]
$ composer update
$ yarn install
$ yarn run gulp
$ php bin/console doctrine:database:create
$ php bin/console doctrine:schema:update --force
$ php bin/console doctrine:fixtures:load
$ rm -rf var/cache var/logs && mkdir var/cache var/logs && chmod -R 777 var/cache var/logs
```
Open: http://localhost:8000/

TODO List
---------------
GET FUN!!!

Authors
-------

Project by [Odiseo Team](https://odiseo.com.ar).
7 changes: 0 additions & 7 deletions app/.htaccess

This file was deleted.

7 changes: 0 additions & 7 deletions app/AppCache.php

This file was deleted.

83 changes: 0 additions & 83 deletions app/AppKernel.php

This file was deleted.

1 change: 0 additions & 1 deletion app/Resources/TwigBundle/views/Exception/error.html.twig

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions app/autoload.php

This file was deleted.

74 changes: 0 additions & 74 deletions app/config/config.yml

This file was deleted.

Loading

0 comments on commit 656d51c

Please sign in to comment.