/fstvlstb-web

Fstvlst web project

Primary LanguagePHP

Modular System Platform

Notes for development using Docker

A helper script named dev is provided as a shortcut for the docker-compose commands to simplify the development process.

Requirements

  • Docker Engine
  • Docker Compose

Getting Started

Create .env file by copying from .env.example

cp .env.example .env

Install project dependencies

./dev composer install

Generate application key

./dev artisan key:generate

Available command

serve

Start the containers

./dev serve

You can change the port where PHP server is running on different port from the one definend in .env file

APP_PORT=8080 ./dev serve

down

Stop the containers

./dev down

composer

Run composer and pass-thru any extra arguments inside a new app container

./dev composer help

artisan

Run artisan and pass-thru any extra arguments inside a new app container

./dev artisan help

test

Run phpunit and pass-thru any extra arguments inside a new app container

./dev test --help