This is project is superseeded by grueneschweiz/imagery.
This tools aims to provide a simple way to generate images conforming the corporate design rules.
It's designed to be so simple to use, that no any further instructions are needed and no corporate
design rules can be broken.
See it in action
Not everybody has the software and skills to create corporate design images on his own. And it's not everybodys hobby to learn all the rules of the corporate design.
... is cool, simple and helps to make the 🌍 a better place 🤩
- Install docker. (If you're on a linux machine, make sure to follow the post installation steps.)
- Start docker
- Clone this repo
git clone git@github.com:grueneschweiz/cd.gruene.ch.git
cd
into the folder containing the repo- Execute
bash scripts/install.sh
and have a ☕️ while it installs. - Execute
docker-compose up -d
to start up the stack. - After a few seconds: Visit localhost:8000. If you get a connection error, wait 30 seconds then try again.
- Login using
admin@admin.admin
as email andAdmin2018
as password.
Using a Lamp stack on docker, the tool is built with CakePHP. The image
processing is done with ImageMagick and the frontend
uses a bunch of JS-Tools bundled by Webpack. Have a look at the package.json
if you want to dig deeper.
Grab an issue and get started
- As the font used in the corporate design is proprietary, you'll need to get a licenced copy. Contact us, for more info.
- The
JS
andCSS
source files are located insrc/Assets
and then transpiled into thewebroot
. - Since the project started a long time ago, the
JS
is still in ECMAScript 5. - Please update the MySQL workbench model in
src/Model/Workbench
and the.docker/seed.sql
, if you make changes to the database schema.
- Start up:
docker-compose up -d
- Shut down:
docker-compose down
- Execute CakePHP CLI commands (enter container):
docker exec -it cd_app bash
. Useexit
to escape the container. - Add dependency using composer:
docker-compose -f docker-compose.install.yml run composer composer require DEPENDENCY
(yes,composer composer
is correct, the first one defines the container to start the second one is the command to execute) - Add dependency from npm:
docker-compose -f docker-compose.install.yml run node npm --install DEPENDENCY
(You may want to use--save
or--save-dev
as well. Check out the Docs.)
All mail you send out of the application will be caught by Mailhog
Use the handy phpMyAdmin or access the mysql CLI using
docker exec -it cd_mysql mysql --user=cake --password=cake cake
Access the watching container using docker exec -it cd_node bash
or use
docker attach cd_node
to get the output directly on your console.