Giter Site home page Giter Site logo

mileapp-test's Introduction

MileApp Backend Test

N|MileApp

This is repositories for API MileApp Backend Test

Development Setup

Installation

Berikut merupakan langah-langkah untuk instalasinya

git clone https://github.com/khaizbt/mileapp-test.git
cd mileapp-test

*karena authentikasi memakai sanctum dan defaultnya tidak menggunakan MongoDB maka kamu harus mengubah

 /vendor/laravel/sanctum/src/SanctumServiceProvider.php

Ubah dari

use Illuminate\Database\Eloquent\Model;

ke

use Jenssegers\Mongodb\Eloquent\Model;

Restore file binary Database yang sudah dikirimkan melalui email atau bisa diakses pada link ini kemudian jalankan perintah berikut(Untuk Windows), Jika OS bukan Windows bisa lihat dokumentasi disini

mongorestore.exe --archive="mileapp-db" --nsFrom="mileapp.*" --nsTo="mileAppBackup.*" 

ganti .env sesuai dengan credential mongodb kamu lalu jalankan perintah berikut(disini saya memakai nama database mileAppBackup dari hasil restore database

composer install
php artisan key:generate

Untuk dapat mengakses resource packages, kamu harus login terlebih dahulu pada postman (Login Request)

email: [email protected]
password: password123

Endpoint Access

Untuk mengakses Endpointnya kamu bisa melakukannya di link berikut POSTMAN atau mengimport manual file dengan nama "Mileapp.postman_collection.json" yang sudah dikirimkan via email

Unit Testing

Sebelum menjalankan Unit Testing, Diharapkan untuk menyiapkan data valid(karena Unit Testing datanya masih Hard Code) seperti token beserta Package ID, Customer ID, Location ID, Connote ID untuk dijalankan pada File Unit Testing(PackageCRUDTest) ketika sudah selesai, jalankan :

php artisan test

Thanks a lot

terimakasih team mileapp yang sudah mau membaca dokumentasi singkat ini, mohon maaf jika masih banyak kekurangan.

mileapp-test's People

Contributors

khaizbt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.