/ord-mgt

Primary LanguagePHP

Order Management App

NOTE: Requires Composer, uses Lustre Framework

Set Up

$ cd /path/order-management

$ composer install

$ Setup MySQL database 'orders_db' in your machine

      - mysql -u[your_mysql_user] -p < seed.sql

      - Enter your MySQL password if prompt

      - This will create orders_db database, and db tables with sample users and products data.

$ Change your database credentials in 'application/Config/DBConfig.php'

      - 'host' => localhost

      - 'database' => 'orders_db'

      - 'username' => 'your_mysql_username'

      - 'password' => 'your_mysql_password'

$ php -S localhost:8080 -t web/

$ Visit http://localhost:8080 in your browser.

To run tests

$ ./vendor/bin/phpunit tests/units

$ ./vendor/bin/phpunit tests/integrations