A voucher manager to create discount codes for offers
This web app was built using Zend Framework, Smarty, JQuery, Twitter-bootstrap and much passion for our work!
Clone the project files.
$ git clone [email protected]:leonardoad/voucherManager.git
Crate and set permission to the templates and images folder:
/Libs/View/templates_c
Restore the database using the script that is on the path
/res/db/voucher.sql
Configure the database access information on the file /site/Application/Config.ini
like the example below
db.adapter = pdo_mysql
db.config.host = localhost
db.config.username = root
db.config.password = 'mypassword'
db.config.dbname = voucher
To log in as site master admin use: user: admin password: menuap
- Leonardo Danieli - leonardoad
With the composer installed, run the command:
composer install
It will install the dependencies for the tests
Open the comand line prompt on the project's root folder and execute the comand:
vendor/bin/phpunit --bootstrap ./site/Application/Models/Voucher.php ./tests/VoucherTest
All the API requests are on a Postman Collection:
Postman - Postman API Documentation
- Zend Framework - The web framework used
- Composer - Dependency Management
- PHPUnit - Used to the tests