This is a test project web service from FLIP
- Create relational database
- Create dummy data
- Create feature for view history withdraw transaction
- Create feature for get status disburstment from API
- Save response from GET Api disburstment into local database
- Send POST data request from FAILED status restful API for disburstment
- Create withdraw request
- Send POST data request restful API for disburstment
- Save response from API disburstment into local database
- Create migrate database schema
- Code improvement
- Deploy to heroku
- Installation docs
- Getting started docs
- How to use docs
Install the application using the following command:
$ git clone https://github.com/djhaow/djarot-market-place.git
$ cd djarot-market-place
$ composer install
After install the application, you have to conduct the following steps to initialize the installed application.
- Create a new database with the name as you want
- Edit the file inside config/db.php, for example :
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=YOUR_DATABASE_NAME',
//'dsn' => 'mysql:host=localhost;dbname=YOUR_DATABASE_NAME;unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock', //~~ MAMP users
'username' => 'root',
'password' => '',
'charset' => 'utf8',
];
- Edit API configuration file inside config/params.php, for example :
return [
'api_hostname' => 'http:https://test.com',
'api_secret_key' => 'XXXXXXXX'
];
- Apply migrations with console command
./yii migrate
. This will create tables needed for the application to work. - Run the project with command
./yii serve
- Open your browser usually like this : http:https://localhost:8080/
- Or you can access demo online here : http:https://djarot-market-place.herokuapp.com/
User Login List :
- makmur/makmur
- jaya/jaya
- sukses/sukses
Test can be executed by running
vendor/bin/codecept run unit