Log and show yourself.Demo iLogme.com.
记录每天要干些什么( Todo ),打算立刻去干什么(时段)、到底干了什么(截屏)
#MySQL Command-Line
CREATE DATABASE `ilogme` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
cd /home
git clone https://github.com/laoyuan/ilogme.git
cd ilogme
composer install
#In Mainland China, befor composer install
composer config -g repo.packagist composer http://packagist.phpcomposer.com
cp .env.example .env
#edit DB_*
vi .env
php artisan key:generate
php artisan migrate --seed
chown -R nginx:nginx bootstrap/cache
chown -R nginx:nginx storage
#edit nginx.conf
server {
listen 80;
server_name ilogme.com www.ilogme.com;
root /home/ilogme/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php-fpm/php70-php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
vi vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php
protected function createRecaller($value)
{
#return $this->getCookieJar()->forever($this->getRecallerName(), $value);
return $this->getCookieJar()->make($this->getRecallerName(), $value, 86400);
}
https://github.com/Crinsane/LaravelCalendar
cd ~/laravel
composer create-project laravel/laravel --prefer-dist ilogme
cd ilogme
composer require "overtrue/laravel-lang:dev-master" #for Multi-language
cp -r vendor/caouecs/laravel4-lang/zh-CN resources/lang
composer remove overtrue/laravel-lang --update-with-dependencies
npm update -g
npm install -g coffee-script marked jshint leasot node-gyp gulp bower
npm install gulp laravel-elixir bower
vi .bowerrc
{
"directory": "vendor/bower_dl"
}
vi bower.json
{
"name": "ilogme",
"description": "log yourself",
"ignore": [
"**/.*",
"node_modules",
"vendor/bower_dl",
"test",
"tests"
],
"dependencies": {
"jquery": "1.10.2",
"bootstrap": "3.3.6",
"bootswatch": "3.3.6",
"bootstrap3-typeahead": "4.0.1",
"jquery-simple-datetimepicker": "1.12.0"
}
}
bower update
wget -O public/assets/js/bootstrap3-typeahead.min.js https://raw.githubusercontent.com/bassjobsen/Bootstrap-3-Typeahead/master/bootstrap3-typeahead.min.js
wget -O public/assets/js/bootstrap3-typeahead.js https://github.com/mugifly/jquery-simple-datetimepicker/raw/master/jquery.simple-dtpicker.css
vi gulpfile.js
gulp copyfiles
vi resources/assets/less/bootswatch.less
gulp --production
git init
git remote add origin [email protected]:laoyuan/ilogme.git
git add .
git commit -m "first"
git push origin master -u
php artisan make:auth
php artisan make:migration create_types_table --create=types
php artisan make:migration create_type_user_table --create=type_user
php artisan make:migration create_spans_table --create=spans
php artisan make:migration create_todos_table --create=todos
php artisan make:migration create_notes_table --create=notes
php artisan make:migration create_pics_table --create=pics
php artisan make:migration create_comments_table --create=comments
php artisan make:seeder TypeTableSeeder
php artisan migrate --seed
git commit -m "migration"
php artisan make:model Span
php artisan make:model Type
php artisan make:model Todo
php artisan make:model Note
php artisan make:model Pic
php artisan make:controller UserController
php artisan make:controller SpanController --resource
php artisan make:controller TypeController --resource
php artisan make:controller TodoController --resource
php artisan make:controller NoteController --resource
php artisan make:controller PicController --resource