Giter Club home page Giter Club logo

inosoft-be's Introduction

Build Status Total Downloads Latest Stable Version License

jwt session is available in one hour

License

The Laravel framework is open-sourced software licensed under the MIT license.

Instalasi

  1. Jalankan Command

composer install --ignore-platform-reqs

  1. Setelah itu ganti host DB dengan 'localhost'

  2. Buat database dengan nama 'laravel_sail'

  3. Lakukan migrasi database dan seed data untuk stok mobil dan motor

php artisan:migrate fresh --seed

  1. Lakukan Testing menggunakan
    ,/vendor/bin/sail artisan test
    
    atau
    php artisan test
    
  2. Jalankan project seperti biasa setelah test

php artisan serve

Untuk Docker

  1. Jalankan Command

composer install --ignore-platform-reqs

  1. Setelah itu ganti host DB dengan 'mongo'

  2. Buat database dengan nama 'laravel_sail'

  3. Jalankan container docker

    • Untuk Windows

      .\vendor\bin\sail up

    • Untuk OS berbasis *NIX

      ./vendor/bin/sail up

  4. Setelah menjalankan command diatas. Project laravel sudah berjalan dan diakses melalui localhost seperti biasa
    untuk port project laravel dan database dll dapat dilihat di file docker-Compose.yml di bagian PORT untuk setiap service

  5. Setelah itu jalankan migrasi

    • Untuk Windows

      .\vendor\bin\sail php artisan migrate:fresh --seed

    • Untuk OS berbasis *NIX

      ./vendor/bin/sail php artisan migrate:fresh --seed

API Usage

POST : http://localhost:80/api/auth/login

Login

{
    "email":"[email protected]",
    "password":"password"
}

List Kendaraan

GET  : http://localhost:80/api/auth/kendaraan

List History ketika ingin melihat history transaksi dengan tipe kendaraan mobil ketika salah menulis url maka akan Get semua history transaksi

GET  : http://localhost:80/api/auth/history?tipe_kendaraan=mobil

Get semua history

GET  : http://localhost:80/api/auth/history

Get history dengan id transaksi

GET  : http://localhost:80/api/auth/history?id=id transaksi

Transaksi

POST  : http://localhost:80/api/auth/transaksi

ganti id_item sesuai dengan id kendaraan

{
    "nama":"Deva",
    "id_item":"62c8be4c96b06bdecb0a0927",
    "stok_item":1
}

inosoft-be's People

Contributors

devazikrullah 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.