# Admin Overdrive Starter

## Installation & updates

`git clone` or download this source code then run `composer update` whenever there is a new release of the framework.

## Setup

- Copy `env` to `.env` and tailor for your app, specifically the baseURL and any database settings.
- Run `php spark db:create` to create a new database schema.
- Run `php spark migrate` to running database migration
- Run `php spark db:seed users` to seeding default database user
- Run `php spark key:generate` to create encrypter key
- Run `php spark serve` to launching the CodeIgniter PHP-Development Server

## Server Requirements

PHP version 8.0 is required, with the following extensions installed:

- [intl](http://php.net/manual/en/intl.requirements.php)
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

Additionally, make sure that the following extensions are enabled in your PHP:

- json (enabled by default - don't turn it off)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php)
- xml (enabled by default - don't turn it off)

## Features

Features on this project:

- Authentication
- Authorization
- User Registration
- Menu Management with auto create controller and view file

## Packages include
- php: ^8.0
- codeigniter4/framework : ^4
- aws/aws-sdk-php : ^3.254
- mpdf/mpdf : ^8.1
- phpoffice/phpspreadsheet : ^1.25

## Run with out spark

Create a Virtual host:

- Edit apache vhost file , httpd-vhosts.conf
- Add to the file
 ```
 # crimeMappingWebportal
    <VirtualHost *:80>
    ServerName crimeMappingWebportal.local
    DocumentRoot "c:/wamp/www/crimemapping-webportal/public"
    <Directory  "c:/wamp/www/crimemapping-webportal/public/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
    </VirtualHost>

 ```
 - add host name to windows hosts file , C:\Windows\System32\drivers\etc , hosts
 ```
    127.0.0.1 crimeMappingWebportal.local
 ```
 - Restart WAMP All services
## Development TODOS:
- https://siliconsoftware.atlassian.net/jira/software/projects/SI/boards/12

## Documentations / Functions
- https://siliconsoftware.atlassian.net/wiki/spaces/AO/overview

# CRUD automation scrips
-
