Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.53 KB

File metadata and controls

44 lines (27 loc) · 1.53 KB

Setup new project (with Docker)

After a successful :ref:`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 git@github.com:glagol-dsl/docker-compose-project-skeleton.git glagol-hello-world

Attention!

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

Hint

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 docker-compose.yml. By default they are:

Host:localhost
port:3307
database:glagol
user:root
password:123

Next you can proceed directly to :ref:`hello_world_controller`.