Setup new project (with Docker)¶
After a successful Installation of Glagol DSL server and client apps you are ready to start developing. As discussed within the installation section the fastest way to start developing is to use Docker and Docker Compose.
Create a new project structure¶
Simply clone the default project skeleton:
$ mkdir glagol-hello-world $ git clone email@example.com:glagol-dsl/docker-compose-project-skeleton.git glagol-hello-world
You need to have the Glagol DSL Server app running before you proceed. Remember, you can start the server app by simply running
$ glagol-server daemon.
After you clone the default project skeleton you can compile it for first time! Simply run the compile command:
$ glagol compile
The output should be something like:
Successfully compiled glagol project
And then you are ready to spin-up the Docker Compose environment:
$ docker-compose up
The Docker Compose configuration will automatically install all PHP Composer dependencies upon containers startup. In fact, it will do so every time you spin-up the containers. See
./scripts/composer.sh for how it works under the hood.
The credentials for connecting to the mysql database can be found in
By default they are:
Host: localhost port: 3307 database: glagol user: root password: 123
Next you can proceed directly to Hello world controller.