溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

考勤應用 - 人力資源系統

發布時間:2020-02-25 17:37:22 來源:網絡 閱讀:333 作者:SexyPhoenix 欄目:web開發

項目地址 Bee

介紹

Bee 是人力資源系統中的考勤應用,主要功能用于員工申請假單。Bee具有較高的性能、擴展性等,其中包括前后端分離、插拔式的規則驗證(驗證器)、數據過濾(裝飾器)、消息隊列等,后端在Laravel 的MVC模式上,又添加了Services、Repositories層,明確每個類的職責,使用Passport 的密碼模式獲取接口數據。

技術棧

  • 服務器:Linux(Centos 7)、Nginx
  • 前端:Element、Vue、Vue-Router、Vuex、Webpack、V-calendar
  • 資源:Elephant
  • 后端:Laravel
  • 緩存:Redis
    其他的就是一些基本工具了,比如node、npm(cnpm)、composer、git等
演示
1. 登錄

考勤應用 - 人力資源系統

2. 申請

考勤應用 - 人力資源系統

3. 編輯

考勤應用 - 人力資源系統

4. 審批

考勤應用 - 人力資源系統

5. 搜索

考勤應用 - 人力資源系統

安裝

1. 下載
git clone git@github.com:SexyPhoenix/Bee.git 
2. Laravel
composer install
chmod -R 777 storage
php artisan key:generate
3. 上傳文件夾
mkdir -p uploads/bee
chmod -R 777 uploads
4. 配置.env
cp .env.example .env
APP_URL=http://localhost
ASSET_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
5. 數據庫
php artisan migrate
6. Passport
php artisan passport:keys
php artisan passport:client --password --name='bee'  //name 自定義
7. 開啟消息隊列
php artisan queue:work bee --queue=apply --sleep=3 --tries=3 & > /dev/null
8. Nginx
server {
    listen 80;
    server_name dev.bee.goods; // 自定義
    index index.html index.htm index.php;

    location / {
        rewrite ^/(.*)$ /index.php/$1 last;
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ /uploads/ {
       root "/var/www/Bee"; // 自定義
    }

    location ~ \.(html|gif|jpg|jpeg|css|js|eot|svg|ttf|woff|woff2|png)$ {
      root "/var/www/Bee/public"; // 自定義
    }

    location ~ (.+\.php)(.*)$ {

        root /var/www/Bee/public; // 自定義
        fastcgi_split_path_info ^(.+\.php)(.+)$;
        fastcgi_pass unix:/var/run/php-fpm/php7-fpm.sock;  // 自定義
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;

        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
     }
}
9. 前端
cnpm install //cnpm淘寶的

export const API_DOMAIN = 'http://xxx/beeapi'  //resources\js\config\bee.js 文件中修改域名
npm run dev
10. 導入基本數據(database\sql\bee.sql)

最后,注意配置域名到host。

打開 http://xxx/bee#/
賬號:zhangxiaofan@qq.com 密碼:123456

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女