2017 © Pedro PelĂĄez
 

project ignition-go

Codeigniter Modular App Building Framework - create and reuse 'blox'

image

ci-blox/ignition-go

Codeigniter Modular App Building Framework - create and reuse 'blox'

  • Tuesday, June 19, 2018
  • by boblennes
  • Repository
  • 22 Watchers
  • 77 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 47 Forks
  • 3 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Ignition Go | Donate

 Status: , (*1)

A Modular (HMVC) App Building Framework - complete with front end, REST api, and 2 admin areas (Admin / Secure), (*2)

  • create "blox" modules to build enterprise class web applications
  • uses Codeigniter 3.x and Bootstrap 4.x.x
  • can be used as a quickstart project starter/boilerplate
  • What are blox? "Blox" are just pluggable modules or applets that are commonly used in web applications. Ignition Go includes a web-based generator (see BuildABlox). Planned example "blox" would be a bulk emailer, report manager, and many more!!!

Documentation

Documentation is now available: [Ignition-Go Documentation on GitHub] (http://ci-blox.github.io/Ignition-Go/#/concepts/ACL) Take a look at the key concepts documents and also see the /docs folder for more., (*3)

Server Requirements (Preferred)

  • PHP 7.3 you can run in lower (5.6) but the recommended version for production to use is PHP 7.3 for your projects. PHP 7.3 is now supported in the latest code and anything below PHP 7.3 is no longer officially supported.
  • Apache 2.4+ with rewrite mod enabled
  • MySQL 5.5+ or MariaDb

Installing

****NOTE: now using Yarn for packages (so Bower is not needed / optional)., (*4)

  1. GIT clone this repository

Example: git clone https://github.com/ci-blox/Ignition-Go.git myigoapp, (*5)

  1. Either:
    2a) use Yarn and Gulpjs (highly recommended for non-experts) - go to step 3
    -or-
    2b) map your webserver to the 'public' folder to use pre-installed versions of packages
    (skip to step 8)
    , (*6)

  2. Install NPM node.js: package manager for node modules, and [install Yarn] (https://yarnpkg.com/lang/en/docs/install/), (*7)

  3. Change directory to new site/web app root
    Example: cd myigoapp, (*8)

  4. Install all the packages and components
    Type: yarn install
    , (*9)

  5. Create an empty mySql or MariaDb database (default db name is ci_blox) and a user (default is root/no password). Note that the database.php file in application/config contains these configuration settings.
    , (*10)

Example: use a tool like HeidiSQL or phpMyAdmin and create both a database and a user with privileges that new database
, (*11)

  1. Run 'gulp' (note that gulp will run continuously in 'watch' mode, watching for css and js changes).
    then
    EITHER type: gulp
    OR.. type: gulp serve OR.. type: gulp build which just rebuilds the JS and CSS, (*12)

  2. (Optional, required if no gulp or in production) In Apache, map the 'public' folder to localhost or other url, (*13)

Example: in your httpd-vhosts.conf file, add new <VirtualHost> section and restart Apache, (*14)

  1. Go to http://[your-web-root-from-step-7]/install/init in your browser to finish using install wizard

eg if you used gulp, goto http://localhost:8080/install/init
if you had created virtual host igotestlocal.com, then go to http://igotestlocal.com/install/init in your browser, (*15)

Features

Ignition Go is a jumpstart for your rapid development: * Multi-faceted (e.g. Frontend Website, Authorized User Only modules, Admin Panel, and API) website in a single application * Modular design using CodeIgniter HMVC extension * Custom config files (sites.php, locale.php) for easy configuration of website behavior * Frontend with multiple themes (with over 16 free Bootswatch themes) * Admin Panel with AdminLTE v3 theme * Includes usage of many other 3rd party optional libraries via Composer, NPM or Yarn * API Site to handle RESTful endpoints * User authentication (optional) for secure area in Frontend Website (Sign Up, Login, Forgot Password, et al) * User authentication for Admin Panel (Login, Change Password, et al) * Preset layouts and templates * Preset asset pipeline (e.g. minify scripts, image optimization) via Gulp (reference from gulp-starter 2.0 branch) * Buildablox blox module/form builder to generate blox and CRUD form views with Bootstrap theme, form validation * Breadcrumb and Pagination handling * Multilingual support * Email config setup * CLI utility functions (e.g. cron job, database backup) * Guzzle client integrated as library (use instead of Curl) * Use gulp serve to instantly see updates to code, (*16)

Folder Structure

Folder structure (most but not all folders shown). **=not available yet, (*17)

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)

Asset Customization (e.g. additional js/css files)

A gulp configuration (gulpfile.js) is included. It utilizes package and component tools from these sites: * NPM node.js: package manager for node modules * Yarn: package manager * GulpJS gulp: task runner to compile, combine, and minify * Guzzle guzzle: integrated for use as a REST client or for complex curl operations, (*18)

Help wanted please: contact us to help enhance this amazing web app builder!

Please contact us to contribute., (*19)

Acknowledgements

Special thanks to the Bonfire project and those who contributed to it - many features and infrastructure concepts were inspired or incorporated outright from that project. Also thanks to all the projects like GuzzlePHP and countless others that are open source, whose components are incorporated and allow this initiative to exist. Finally, thanks especially to the CodeIgniter team, with whom CodeIgniter continues to thrive!, (*20)

The Versions

19/06 2018

dev-master

9999999-dev https://ciblox.com

Codeigniter Modular App Building Framework - create and reuse 'blox'

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

01/01 2018

dev-quickstart

dev-quickstart https://ciblox.com

Codeigniter Modular App Building Framework - create and reuse 'blox'

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

10/11 2017

dev-m

dev-m https://ciblox.com

Codeigniter Modular App Building Framework - create and reuse 'blox'

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

17/07 2017

dev-analysis-87BDnZ

dev-analysis-87BDnZ https://ciblox.com

Codeigniter Modular App Building Framework - create and reuse 'blox'

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires