Skip to content

djhaow/djarot-market-place

Repository files navigation

My Market Place APP

This is a test project web service from FLIP

My Todo Task List :

  • 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

Create docs

  • Installation docs
  • Getting started docs
  • How to use docs

Installation

Installation via Composer

Install the application using the following command:

$ git clone https://github.com/djhaow/djarot-market-place.git
$ cd djarot-market-place
$ composer install

Getting Started

After install the application, you have to conduct the following steps to initialize the installed application.

  1. Create a new database with the name as you want
  2. 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',
];
  1. Edit API configuration file inside config/params.php, for example :
return [
    'api_hostname' => 'http:https://test.com',
    'api_secret_key' => 'XXXXXXXX'
];
  1. Apply migrations with console command ./yii migrate. This will create tables needed for the application to work.
  2. Run the project with command./yii serve
  3. Open your browser usually like this : http:https://localhost:8080/
  4. Or you can access demo online here : http:https://djarot-market-place.herokuapp.com/ User Login List :
    • makmur/makmur
    • jaya/jaya
    • sukses/sukses

Quick Start

  1. On homepage area, click login menu "Homepage"

  2. Login with credential above "Loginpage"

  3. Sending request disburstment to Flip API "Requestpage"

  4. This is history page, where all seller transaction log saved here "Historypage"

Unit Testing

Test can be executed by running

vendor/bin/codecept run unit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published