Giter Club home page Giter Club logo

ss-toko-ijah-scala-playframework's Introduction

ss-toko-ijah-scala-playframework

Used:

  • scala play framework 2.6
  • anorm
  • spoiwo Database : SQLite

###Simple Script :

it's so simple! Just write.

$ sbt run

in your terminal in your project directory, and VOILA! It's running and you can try it

Database Structure

  1. table jumlah_barang columns: -sku varchar -item_name varchar -qty int 2.table barang_masuk columns:
  • waktu datetime, -sku varchar -item_name varchar -jumlah_pemesanan int, -jumlah_diterima int -harga_beli int -total int -catatan text -id Integer autoincrement 3.table barang_keluar
  • waktu datetime, -sku varchar -item_name varchar -jumlah_keluar int -harga_jual int -total int -catatan text -id Integer autoincrement Toko Ijah Inventory Activities: ========================== Postman url : import this link for easier way checking this API. https://www.getpostman.com/collections/693dd269bbcf99cdf24e.
  1. Store jumlah barang routes : /create/jumlah-barang method : POST input example:
{
    "sku":"abcd",
    "item_name":"baju monyet baru",
    "jumlah":105
}
  1. Store barang masuk routes : /create/barang-masuk. method : POST. input example:
{
    "sku":"abc",
    "item_name":"baju",
    "waktu": "2018-01-01 01:00:00",
    "pemesanan":100,
    "terima":99,
    "beli":14000,
    "kwitansi":"ID-0001",
    "catatan": "bagus kok barangnya, ga da masalah"
 }
  1. Store barang keluar. routes : /create/barang-keluar. method : POST. input example :
{
    "sku":"abc",
    "item_name":"baju",
    "waktu": "2018-01-01 01:00:00",
    "keluar":99,
    "jual":14000,
    "catatan": "Pesanan ID-0001"
}
  1. show laporan penjualan barang. routes : /laporan/penjualan?ds=<yyyy-mm-dd>&de=<yyyy-mm-dd>. method : GET.

  2. show laporan nilai barang. routes : /laporan/nilai-barang. method : GET.

  3. export laporan penjualan barang. routes : /export/penjualan. method : GET.

  4. export laporan nilai barang. routes : /export/nilai-barang. method : GET.

  5. import catatan jumlah barang. routes : /import/jumlah-barang?filename=<file name only>

  6. import catatan barang masuk. routes : /import/barang-masuk?filename=<file name only>

  7. import catatan barang keluar. routes : /import/barang-keluar?filename=<file name only>

ss-toko-ijah-scala-playframework's People

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.