A guide to getting started contributing on this project
- Make sure you have Apache server or XAMPP installed
- PHP version 5.4 and above is required
- MySQL database installed
php-cli
is required to execute php files on command line
Clone this project to your local machine from SACIDS Afyadata Manager
- Create a MySQL database
- Change database username, password and database name in
database.php
file located underapplication/config/database.php
- To initialize database base tables open terminal mac or linux or command prompt (CMD) on windows on and navigate to the root or your directory and run
$ php index.php migration latest
All the tables will be created and you can start contributing on the project right away.
- If you have successfully migrated your database follow below instructions.
- Open your favorite web browser and type
http://localhost/<your-project-directory>
- Login with username as
admin
and password assacidsdemo
Click to learn more how to contribute on this project
- If you have successfully migrated your database follow below instructions.
- To run this download and install composer if you have composer installed continue to step two below
- Then run
$ composer update
to get dependencies - Open terminal or command line interface
- Navigate to root directory of your project (
i.e afyadata
) - Then run
$ php index.php seeder seed
to get dummy data generated - You can adjust limit at any time to fit the number of records you want at
controllers/Seeder.php
- Navigate to project root directory
cd /path/to/project/
- Run
composer require kenjis/ci-phpunit-test --dev
- And run
install.php
inside vendor directory$ php vendor/kenjis/ci-phpunit-test/install.php
- Navigate to test directory inside your application folder see below
- Go to project folder/directory
$ cd /path/to/project/
- Then navigate to test folder
$ cd application/tests
- Run test
$ phpunit