/Chatter

Example Chat Application made with Zend Framework 2 and Doctrine 2 running in Docker

Primary LanguageJavaScriptMIT LicenseMIT

Chatter

Example Chat Application made with Zend Framework 2 and Doctrine 2 running in Docker.

Requirements

Installation

###Docker

Download the Docker Toolbox. After installing, run the Docker Quickstart Terminal and navigate to the project folder and run:

docker-compose build

This will use the Dockerfile in the docker folder and build the image used for running web server.

Next run:

docker-compose up -d

This will create a container based on the docker-compose.yml configuration and run it as a daemon.

The virtual host in the docker container has a server alias chatter.dev. For this to work, add the alias with the Docker ip address to your host file, e.g.:

192.168.99.100 chatter.dev

###Project

Copy (or rename) config/autoload/local.php.dist to config/autoload/local.php.

Use composer to install the dependencies:

php composer.phar install

Now it's time to run the Doctrine migrations:

php public/index.php migrations:migrate -n

This will generate a SQLite database with all the necessary tables and data.

That's it! Now go to your web browser and navigate to:

http://chatter.dev:8001/