地位:
模組化 (HMVC) 應用程式建置框架 - 配有前端、REST API 和 2 個管理區域(管理/安全)
建立“blox”模組來建立企業級 Web 應用程式
使用 Codeigniter 3.x 和 Bootstrap 4.xx
可用作快速啟動專案啟動器/樣板
什麼是blox? 「Blox」只是 Web 應用程式中常用的可插入模組或小程式。 Ignition Go 包含一個基於 Web 的生成器(請參閱 BuildABlox)。計劃的範例“blox”將是一個批量電子郵件發送器、報告管理器等等!
文件現已提供:[GitHub 上的 Ignition-Go 文件] (http://ci-blox.github.io/Ignition-Go/#/concepts/ACL) 查看關鍵概念文檔,另請參閱 /docs資料夾以獲取更多資訊。
PHP 7.3您可以在較低版本 (5.6) 中執行,但建議在您的專案中使用的生產版本是 PHP 7.3。 最新程式碼現已支援 PHP 7.3,並且不再正式支援 PHP 7.3 以下的任何版本。
Apache 2.4+啟用重寫模式
MySQL 5.5+ 或 MariaDb
****注意:現在使用 Yarn 進行套件(因此不需要/可選 Bower)。
GIT 克隆此儲存庫
範例: git clone https://github.com/ci-blox/Ignition-Go.git myigoapp
任何一個:
2a) 使用 Yarn 和 Gulpjs(強烈建議非專家使用) - 前往步驟 3
-或者-
2b) 將您的網路伺服器對應到「public」資料夾以使用預先安裝版本的軟體包
(跳至步驟8)
安裝 NPM node.js:節點模組的套件管理器,以及 [安裝 Yarn] (https://yarnpkg.com/lang/en/docs/install/)
將目錄變更為新網站/Web 應用程式根目錄
範例: cd myigoapp
安裝所有軟體包和組件
類型: yarn install
建立一個空的 mySql 或 MariaDb 資料庫(預設資料庫名稱為 ci_blox)和一個使用者(預設為 root/無密碼)。 請注意,application/config 中的database.php 檔案包含這些設定。
範例:使用 HeidiSQL 或 phpMyAdmin 等工具並建立資料庫和具有新資料庫權限的用戶
運行“gulp”(請注意,gulp 將在“watch”模式下連續運行,監視 css 和 js 的更改)。
然後
任一類型: gulp
或者.. 類型: gulp serve或.. 類型: gulp build它只是重建 JS 和 CSS
(可選,如果沒有 gulp 或在生產中則必需)在 Apache 中,將“public”資料夾對應到 localhost 或其他 url
範例:在 httpd-vhosts.conf 檔案中,新增新的<VirtualHost>部分並重新啟動 Apache
在瀏覽器中前往 http://[your-web-root-from-step-7]/install/init 以完成安裝精靈
例如,如果您使用 gulp,請前往 http://localhost:8080/install/init
如果您已建立虛擬主機 igotestlocal.com,請在瀏覽器中造訪 http://igotestlocal.com/install/init
Ignition Go 是您快速開發的快速啟動器:
單一應用程式中的多方面(例如前端網站、僅限授權使用者模組、管理面板和 API)網站
使用 CodeIgniter HMVC 擴充的模組化設計
自訂設定檔(sites.php、locale.php)可輕鬆設定網站行為
具有多個主題的前端(具有超過 16 個免費 Bootswatch 主題)
具有 AdminLTE v3 主題的管理面板
包括透過 Composer、NPM 或 Yarn 使用許多其他第 3 方選用函式庫
用於處理 RESTful 端點的 API 站點
前端網站安全區域的使用者驗證(可選)(註冊、登入、忘記密碼等)
管理面板的使用者身份驗證(登入、變更密碼等)
預設佈局和模板
透過Gulp預設資產管道(例如縮小腳本、影像優化)(參考gulp-starter 2.0分支)
Buildablox blox 模組/表單產生器,用於產生具有 Bootstrap 主題、表單驗證的 blox 和 CRUD 表單視圖
麵包屑導覽和分頁處理
多語言支援
電子郵件配置設定
CLI 實用程式功能(例如 cron 作業、資料庫備份)
Guzzle 用戶端集成為庫(使用而不是 Curl)
使用 gulpserve 立即查看程式碼更新
資料夾結構(顯示大多數但不是全部資料夾)。 **=尚不可用
application/ --- Main application (CodeIgniter) source folder
config/ --- Config files
production/ --- Override Configuration when ENVIRONMENT is set as "production"
controllers/ --- Controllers for Frontend Website; extends from MX_Controller, Base_Controller or Front_Controller
Cli.php --- Utility function that can only be called from command line
Home.php --- Default controller for Frontend Website
core/ --- Extending CodeIgniter core classes; can also be used within modules (MY_????.php); Also extendable controllers here
helpers/ --- Contains custom helper functions being used throughout this repo
language/ --- Preset language files
lib/ --- Custom libraries (e.g. Data Importer)
models/ --- Sample model extending from MY_Model
toolblox/ ** --- Each blox module can be installed or removed
modules/ --- Each module can be accessed by http://{base_url}/{module_name}/{module_controller}/, etc.
admin/ --- Module for Admin Panel
config/ --- Configuration for Admin Panel (overriding application/config/)
controllers/ --- Controllers for Admin Panel; also extends from MY_Controller
helpers/ --- Helper classes, e.g. to generate AdminLTE widgets
lib/ --- Libraries admin
models/ --- Models only being used in Admin panel
views/ --- Views for Admin Panel; can reuse Frontend views, or override by using same path/filename
api/ --- A module specific for REST API endpoints
buildablox/ --- A module to generate and add/remove blox
logs/ --- A module for viewing the daily logs
securinator/ --- A module for roles, permissions, security settings
translate/ --- A module to edit (and auto-generate**) translations
third_party/
MX/ --- Required for HMVC extension
views/ --- Views for Frontend Website
public/ --- SITE ROOT (point Apache here)
public/assets/
css/ --- Custom CSS files append to each site
dist/ --- Minified scripts, stylesheets (and optionally) optimized images via Gulp tasks
fonts/ --- Font files copied via Gulp tasks
img/ --- Source image files before optimization
js/ --- Custom CSS files append to each site
uploads/ --- Default directory of upload files, where permission should set as writable
gulpfile.js/ --- Task runner following gulp-starter 2.0 practice
sql/ --- MySQL files
igocore/ --- Ignition Go core files
igocore/system/ --- CodeIgniter core files (clean CI3 installation with modifications only to reference IGO core)包含 gulp 配置 ( gulpfile.js )。它利用以下站點的套件和組件工具:
NPM node.js:節點模組的套件管理器
紗線:套件管理器
GulpJS gulp:用於編譯、組合和縮小的任務執行器
Guzzle guzzle:整合後可用作 REST 用戶端或複雜的捲曲操作
請聯絡我們做出貢獻。
特別感謝 Bonfire 專案和為其做出貢獻的人 - 許多功能和基礎設施概念都是從該專案中受到啟發或直接融入的。 也要感謝所有像 GuzzlePHP 這樣的項目以及無數其他開源項目,它們的組件被合併並允許這一舉措得以存在。 最後,特別感謝 CodeIgniter 團隊,與他們一起 CodeIgniter 不斷蓬勃發展!