/machdas

Todo manager based on PHP 7, Slim and Vue.js

Primary LanguagePHPMIT LicenseMIT

machdas Build Status Dependency Status Scrutinizer Code Quality

Todo manager based on PHP 7, Slim and Vue.js.

Shorttags

Priority

You can use the following shorttags for setting priority:

  • @high
  • @normal (default priority)
  • @low

Status

Use @done to mark a task as complete

Installation

Docker

docker run --link mysql -e MD_MYSQL_HOST=mysql -p 80:80 pklink/machdas

Available environment variables are:

  • MD_MYSQL_HOST (default: mysql)
  • MD_MYSQL_USERNAME (default: root)
  • MD_MYSQL_PASSWORD (default: password)
  • MD_MYSQL_DATABASE (default: machdas)

Manual Installation

Requirements

Instructions

wget https://github.com/pklink/machdas/archive/<LATEST_VERSION>.tar.gz
tar xzf <LATEST_VERSION>.tar.gz
cd machdas-<LATEST_VERSION>
composer install
cp config.sample.php config.php
vim config.php
npm install
npm run build
php vendor/bin/phinx migrate -e prod
php -S localhost:9000 -t ./public

Upgrade

php vendor/bin/phinx migrate -e prod

Set up development environment

git clone git@github.com:pklink/machdas.git
cd machdas
composer install
cp config.sample.php config.php
vim config.php
npm install
php vendor/bin/phinx migrate -e dev
php -S 127.0.0.1:9000 -t ./public &
npm start

Open http://localhost:8080/ or http://localhost:8080/webpack-dev-server/

Running test

Backend

composer install
php -S localhost:9000 -t ./public &
vim codeception.yml
php vendor/bin/codecept run
php vendor/bin/phpcs --standard=PSR2 backend/ public/api/index.php 

Frontend

npm install
node_modules/.bin/eslint frontend/

Changelog

See CHANGELOG.md