Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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

GOS_WEB_SOCKET_PORT=1337
GOS_WEB_SOCKET_HOST=127.0.0.1

DATABASE_DRIVER=pdo_mysql
DATABASE_HOST=127.0.0.1
DATABASE_PORT=3306
DATABASE_NAME=gosdemo
DATABASE_USER=root
DATABASE_PASSWORD=

LOCALE=en

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=e6c9be9d2001d5278a3a587f60f77dcd
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< symfony/framework-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:[email protected]:3306/db_name
###< doctrine/doctrine-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 ###
29 changes: 19 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
/web/bundles/
/app/bootstrap.php.cache
/app/cache/*
/app/config/parameters.yml
/app/logs/*
!app/cache/.gitkeep
!app/logs/.gitkeep
/app/phpunit.xml
/build/
/vendor/
/.idea
/bin/
/composer.phar

###> symfony/framework-bundle ###
/.env
/public/bundles/
/var/
!/var/cache/.gitkeep
!/var/log/.gitkeep
/vendor/
###< symfony/framework-bundle ###

###> phpunit/phpunit ###
###< phpunit/phpunit ###

###> symfony/phpunit-bridge ###
###< symfony/phpunit-bridge ###
###> symfony/web-server-bundle ###
/.web-server-pid
###< symfony/web-server-bundle ###
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Gos Websocket Demo
==================

- Start websocket bundle `php app/console gos:websocket:server`
- Go to 127.0.0.1/app_dev.php/app/example
- Start socket service in term `php bin/console gos:websocket:server`
- Start web service in a second term `php bin/console server:run`
- Go to 127.0.0.1/app/example
- Look at the console browser
- Play with the code :)

Expand Down
7 changes: 0 additions & 7 deletions app/.htaccess

This file was deleted.

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

This file was deleted.

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

This file was deleted.

13 changes: 0 additions & 13 deletions app/Resources/views/base.html.twig

This file was deleted.

Loading