Skip to content

Latest commit

 

History

History
executable file
·
60 lines (40 loc) · 1.43 KB

README.md

File metadata and controls

executable file
·
60 lines (40 loc) · 1.43 KB

kasirAja API

contoh rest api POS ( point of sales ) built with hapi.js

frontend

ReactJS Web App - kasirAja: Link

React Native Mobile App - kasirAja: Link

table structure

table structure

feature

  • PostgreSQL database
  • bisa lebih dari 1 toko multi store
  • bisa lebih dari 1 kasir multi users
  • pengelolaan kategori, produk, stok, dan pelanggan
  • pembelian
  • penjualan
  • diskon penjualan

documention API

Postman (import file) : Link

Support me

Trakteer Saya

start

  • install

      npm install
    
  • config .env file for database

      cp .env.example .env
    
  • migrate database

      npm run migrate up
    
  • run the app

      npm run start
    
  • test

      curl -i -H 'Accept: application/json' http://localhost:5000/
    

response

HTTP/1.1 200 OK
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 200 OK
Connection: close
Content-Type: application/json
Content-Length: 2

{
    "status": Ok!
}