Skip to content
forked from symfony/demo

Symfony Demo Application with docker-compose

License

Notifications You must be signed in to change notification settings

ffurbo/symfony-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker env with apache, mariadb and phpmyadmin

docker-compose up -d

in the apache-php container:

cd /project
composer install
php bin/console doctrine:database:create
php bin/console make:migration (migration already generated)
php bin/console doctrine:migrations:migrate
php bin/console doctrine:fixtures:load
chmod -R 777 var/

http://localhost:80 - symfony demo
http://localhost:8080 - phpmyadmin

db login: root
db password: example

Symfony Demo Application

The "Symfony Demo Application" is a reference application created to show how to develop applications following the Symfony Best Practices.

Requirements

Installation

Download Symfony to install the symfony binary on your computer and run this command:

$ symfony new --demo my_project

Alternatively, you can use Composer:

$ composer create-project symfony/symfony-demo my_project

Usage

There's no need to configure anything to run the application. If you have installed Symfony binary, run this command:

$ cd my_project/
$ symfony serve

Then access the application in your browser at the given URL (https://localhost:8000 by default).

If you don't have the Symfony binary installed, run php -S localhost:8000 -t public/ to use the built-in PHP web server or configure a web server like Nginx or Apache to run the application.

Tests

Execute this command to run tests:

$ cd my_project/
$ ./bin/phpunit

About

Symfony Demo Application with docker-compose

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 69.8%
  • HTML 20.7%
  • JavaScript 4.9%
  • CSS 3.7%
  • Other 0.9%