Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 997 Bytes

how-to.md

File metadata and controls

61 lines (42 loc) · 997 Bytes

Installation

  • clone this repo
  • install Composer dependencies:
composer install
  • create .env.local file based on the following configuration:
APP_ENV=dev
APP_SECRET=c13b4fa7c2db1758fefcb8b8ab03e90a

# ref. https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7
  • install Node.js and Yarn and after that install dependencies:
yarn install
  • compile assets (make will work on Windows only, check content of the make.bat file to get more details about the commands used below):
make assets
  • create database structure and load fixtures:
make db-reload

Testing

  • use built-in command to run phpunit test suite:
make test

Deployment

  • prepare deployment:
make prod
  • go back to work in dev mode:
make dev