Giter Club home page Giter Club logo

ilogme's Introduction

iLogme based on Laravel 5.2

License

Log and show yourself.Demo iLogme.com.

记录每天要干些什么( Todo ),打算立刻去干什么(时段)、到底干了什么(截屏)

Setup

#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;
        }
    }

hack for "Remember me", reduce to 30 days

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);
    }

DevLog

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

client to upload screencapture

https://github.com/laoyuan/ilogme-client

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.