marcusgsta / comment
Anax COMMENT module.
Requires
- php: >=5.6
- anax/configure: ^1.0
- anax/database: ^1.1
- anax/di: ^1.0
- anax/htmlform: ^1.0
- anax/page: ^1.0
- anax/request: ^1.0
- anax/response: ^1.0
- anax/router: ^1.0
- anax/session: ^1.0
- anax/textfilter: ^1.0
- anax/url: ^1.0
- anax/view: ^1.0
- mos/cimage: ^0.7.19
- symfony/yaml: ^3.3
README
Marcusgsta COMMENT module.
Install
Install using composer and then integrate the module with your Anax installation.
Install an anax base
anax create name-of-your-app ramverk1-site-develop
Install with composer
composer require marcusgsta/comment
Configuration files for Comment System
rsync -av vendor/marcusgsta/comment/config/{database.php,navbar.php,di-for-testing.php} config/
Config files for testing
rsync -av vendor/marcusgsta/comment/config/test config/test/
Router files
rsync -av vendor/marcusgsta/comment/config/route/ config/route/
Views
rsync -av vendor/marcusgsta/comment/view/ view/
Database files
rsync -av vendor/marcusgsta/comment/data/ data/
Set permissions on database folder and file
sudo chmod 777 data && chmod 666 data/db.sqlite
CSS files
rsync -av vendor/marcusgsta/comment/htdocs/css/ htdocs/css/
JS files
rsync -av vendor/marcusgsta/comment/htdocs/js/ htdocs/js/
DI services
You need to add and replace the services from the configuration in vendor/marcusgsta/comment/config/di.php
into your own anax installation config/di.php
. Services that already exist need to be replaced with the new ones, since they have been edited.
Database sql files
There is a default sqlite-database included in data/db.sqlite
. If you need to set up a new database you can take a look at the sql-files in the sql
-directory.
Administrator usage
Log in with username: admin and password: admin. You will be able to set other users as admin by creating new user and assigning them role: 10. You will also be able to edit/delete all comments and all users.
Regular users can only edit/delete their own comments and their own user profile.
License
This software carries a MIT license.
.
..: Copyright (c) 2017 Marcus Gustafsson (marcusgu@icloud.com)