https://github.com/pklink/machdas
Todo manager based on PHP 7, Slim and Vue.js
https://github.com/pklink/machdas
php7 slim todolist vue
Last synced: 6 months ago
JSON representation
Todo manager based on PHP 7, Slim and Vue.js
- Host: GitHub
- URL: https://github.com/pklink/machdas
- Owner: pklink
- License: mit
- Archived: true
- Created: 2013-03-18T17:52:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-07-20T20:22:22.000Z (about 8 years ago)
- Last Synced: 2025-03-13T13:34:19.710Z (7 months ago)
- Topics: php7, slim, todolist, vue
- Language: PHP
- Homepage:
- Size: 866 KB
- Stars: 75
- Watchers: 15
- Forks: 15
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# machdas [](https://travis-ci.org/pklink/machdas) [](https://www.versioneye.com/user/projects/5702b434fcd19a00415b0081) [](https://scrutinizer-ci.com/g/pklink/machdas/?branch=master)
Todo manager based on PHP 7, [Slim](http://www.slimframework.com/) and [Vue.js](http://vuejs.org/).
## 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
* PHP 7.0 and higher
* MySQL 5.1 and higher
* [Composer](http://getcomposer.org/)
* [npm](https://www.npmjs.com/)#### Instructions
```sh
wget https://github.com/pklink/machdas/archive/.tar.gz
tar xzf .tar.gz
cd machdas-
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
```sh
php vendor/bin/phinx migrate -e prod
```## Set up development environment
```sh
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
```sh
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
```sh
npm install
node_modules/.bin/eslint frontend/
```## Changelog
See `CHANGELOG.md`