No description, website, or topics provided.
Clone or download
ramondelafuente Merge pull request #212 from cookieguru/zendcon-2018
Add ZendCon 2018 (Zoe) blue elePHPant
Latest commit 370e61d Oct 28, 2018
Permalink
Failed to load latest commit information.
.idea More uniform indentation settings for phpstorm Oct 5, 2017
.phpspec PHPspec method private in the template makes no sense, phpspec deals … Oct 9, 2017
ansible Logs are kept in /var/log (not logS) Oct 27, 2018
bin Add convenience run commands Oct 12, 2018
config Use info level logging on production Oct 27, 2018
docker Add a docker service to run the herd_projection Oct 6, 2018
docs Logs are kept in /var/log (not logS) Oct 27, 2018
public Upgrade to Symfony4 with flex Sep 4, 2018
spec/Elewant/Herding/Model Upgrade to Symfony4 with flex Sep 4, 2018
src Merge pull request #212 from cookieguru/zendcon-2018 Oct 28, 2018
templates Upgrade to Symfony4 with flex Sep 4, 2018
tests Support unicode in JSON events (and allow import of old events) Oct 7, 2018
translations Upgrade to Symfony4 with flex Sep 4, 2018
.env.dist Update the docker setup end default environments Sep 4, 2018
.gitignore Upgrade to Symfony4 with flex Sep 4, 2018
.travis.yml Remove HumBug form the test suite Sep 16, 2018
Gruntfile.js Upgrade to Symfony4 with flex Sep 4, 2018
LICENSE Updated licence to exclude photos and artwork Sep 25, 2017
README.md Test suites reorganisation Sep 14, 2018
VERSION Bump version to v1.8.2 Oct 27, 2018
Vagrantfile It's not complete, but it'll have to do for now Oct 7, 2018
ansible.cfg Remove reference to non-existing ansible hostsfile Sep 22, 2017
composer.json Update all dependencies Oct 12, 2018
composer.lock Update all dependencies Oct 12, 2018
composer.outdated Update all dependencies Oct 12, 2018
docker-compose-test.yml Add a docker service to run the herd_projection Oct 6, 2018
docker-compose.yml Add a docker service to run the herd_projection Oct 6, 2018
package.json Bump bootstrap version to latest Oct 5, 2018
phpcs.xml Make test suites happy again Sep 14, 2018
phpspec.yml.dist Rewrite the duplicated Equal matcher to a PHPspec Extension Jul 30, 2017
phpstan.neon Make test suites happy again Sep 14, 2018
phpunit.xml.dist Run projections inside the test suite Oct 6, 2018
symfony.lock Update all dependencies Oct 12, 2018

README.md

Elewant

What is it?

Elewant is a project based on the PHP mascotte: the ElePHPant.

The idea is that we make it easier in the community to swap and share these lovely plush pachyderms. For now, you can create a herd and enter all the members that you have. In the near future, it will be possible to put your surplus ElePHPants up for trade, and request specific ElePHPants that you want to add to your herd.

But this project is more. The idea is to allow people who are interested involved. Not just by open sourcing the code so it can be contributed to, but by actually building and running it together. From idea to production and beyond.

What can be learned?

Well, the basics are pretty simple: we build, deploy and maintain a project together. This means that all the aspects of building and maintaining are areas of learning:

So some usual suspects:

  • Behaviour driven development
  • Automated testing
  • Event sourcing
  • The Symfony framework

But also:

  • Automated Provisioning
  • Deploying
  • Build pipelines
  • Logging and alerting
  • Dependency management

And eventually:

  • How to deal with legacy code ;-)

Feel free to add anything you learn, no matter how small, to <docs/lessons_learned.md>

Now choose how to get started, Docker or Vagrant:

Getting started with Docker

You will need docker on your local system:

[Docker](https://www.docker.com/)

Run bin/setup.sh (only for the first time) and then Docker compose:

bin/setup.sh
docker-compose up -d

You should be up-and-running!

http://localhost.elewant.com/

If you want to be able to log in with twitter, you'll need to create an application at app.twitter.com, then place your key & secret in .env.

Running tests

docker-compose -f docker-compose-test.yml run php-fpm bin/run_tests.sh

Getting started with Vagrant

You will need some tools on your local system:

Add the following line to your hostsfile:

192.168.77.77   develop.elewant.loc

If you want to be able to log in with twitter, you'll need to create an application at app.twitter.com, then place your key & secret in a file called ansible/provision/group_vars/develop/override_locally.yml.

Bring your box up:

vagrant up --provision

You should be up-and-running!

http://develop.elewant.loc/

For developers, there is a special button on the front page to generate users for your local environment. Just click on "Developer login" and you should be able to create (and log in as) randomly created users.

Have fun!

Moar docs

You can find more docs in the /docs folder, like: