2017 © Pedro Peláez
 

project web

LongLog web application

image

longlog/web

LongLog web application

  • Saturday, December 16, 2017
  • by demi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Long Log

LongLog web-application., (*1)

Installation

Based on Yii2 advanced template
Clone this repo (you can get future updates by git pull), (*2)

git clone https://github.com/demisang/longlog.git

Clone this project via composer (only manual updates), (*3)

composer create-project --prefer-dist longlog/web longlog

Vagrant installation

cp longlog/vagrant/config/vagrant-local.example.yml longlog/vagrant/config/vagrant-local.yml

Generate github token here https://github.com/settings/tokens/new
Paste token to file: longlog/vagrant/config/vagrant-local.yml, (*4)

vagrant up

If you need Grunt support:, (*5)

vagrant ssh
cd /app
./install-grunt.sh
source ~/.profile

# Run all grunt tasks (sass and favicons)
grunt
# Process scss to css
grunt sass
# Generate favicons
grunt favicons

# Watching scss file changes and run "sass" task.
# Try to edit files in /frontend/resourses/scss/*.scss and 
# you changes immediately applied to /frontend/web/css/style.css
grunt watch

Complete!
Frontend URL: http://longlog.dev
Backend URL: http://admin.longlog.dev
Api URL: http://api.longlog.dev
, (*6)

# Configurations

  1. Register new reCAPTCHA API keys and replace it in /common/config/params.php
  2. Change other params in file /common/config/params.php, for example set: 'user.sendActivationEmail' => true
  3. PhpStorm: Mark the file /vendor/yiisoft/yii2/Yii.php as plain text (right-click "Mark as Plain Text")

Helpful commands:, (*7)

# init RBAC roles
php yii rbac/init

# Extract message translations
php yii message @console/config/translation.php

# Create/Update demo user and demo-data
php yii demo/fill

crontab:, (*8)

# @midnight: Run Garbage Collector
0 0 * * * /usr/bin/php -q /app/yii garbage-collector

# @midnight: yesterday full stats
0 0 * * * /usr/bin/php -q /app/yii stat/daily
# every hour in 30 minutes: totay stats
30 * * * * /usr/bin/php -q /app/yii stat/today

The Versions