Skip to content

Latest commit

 

History

History
119 lines (62 loc) · 2.1 KB

README-DEV.md

File metadata and controls

119 lines (62 loc) · 2.1 KB

Development on AnzuSystems Core-DAM by Petit Press a.s. (www.sme.sk)

Simple guide on how to develop on the project, run tests, etc.


Installation

1. Clone the repository

git clone https://github.com/anzusystems/core-dam.git

2. Start containers

Start project docker containers:

bin/docker-compose up --build -d

Arguments:

  • --build - Build all images to run fresh docker containers
  • -d - Run docker containers in the detached mode as background processes

3. Add local domain to hosts

Add this entry to your hosts:

127.0.0.1   core-dam.anzusystems.local
127.0.0.1   image.anzusystemsdata.local
127.0.0.1   admin-image.anzusystemsdata.local
  • Linux/Mac location:

    /etc/hosts

  • Windows location

    C:\Windows\System32\drivers\etc\hosts

4. Build the application

Rebuild app from ground up:

bin/build

5. Open your application

Open http://core-dam.anzusystems.local in your browser.

Scripts

Scripts available in the project.

Bash

Script used to run bash inside the docker container:

bin/bash

Execute bin/bash -h for all bash containers and options.

Build

Script used to build the project.

bin/build

Execute bin/build -h for all build options.

Clear cache

Script used to clear all cache on local environment:

bin/cc

Execute bin/cc -h for all options.

Docker-compose script wrapper

Wrapper script used to run docker-compose:

bin/docker-compose

Options:

Script will:

  • setup correct permissions for the user if needed (sync UID and GID in docker container with host user, etc.)
  • run docker-compose command

ECS - Coding style fixer

Script used to run the coding style fixer:

bin/ecs

PSALM - Static analyses

Script used to run the static analyses:

bin/psalm

Security

Script used to run the security check inside the docker container:

bin/security

Test

Script used to run Unit tests inside the docker container:

bin/test