You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.4 KiB
Markdown

3 years ago
## kasirAja API
contoh rest api POS ( point of sales ) built with hapi.js
3 years ago
3 years ago
### frontend
3 years ago
`ReactJS Web App - kasirAja`: [Link](https://github.com/ajikamaludin/react-kasiraja-web)
3 years ago
`React Native Mobile App - kasirAja`: [Link](https://github.com/ajikamaludin/react-native-kasiraja-mobile)
3 years ago
### table structure
3 years ago
![table structure](https://github.com/ajikamaludin/hapi-kasiraja-api/raw/dev/documents/tables.png)
3 years ago
### feature
- PostgreSQL database
- bisa lebih dari 1 toko `multi store`
- bisa lebih dari 1 kasir `multi users`
3 years ago
- pengelolaan kategori, produk, stok, dan pelanggan
3 years ago
- pembelian
- penjualan
- diskon penjualan
### documention API
`Postman (import file)` : [Link](https://github.com/ajikamaludin/hapi-kasiraja-api/tree/dev/documents/postman-collection)
3 years ago
3 years ago
### Support me
<a href="https://trakteer.id/ajikamaludin" target="_blank"><img id="wse-buttons-preview" src="https://cdn.trakteer.id/images/embed/trbtn-blue-2.png" height="40" style="border:0px;height:40px;" alt="Trakteer Saya"></a>
3 years ago
### start
3 years ago
- install
3 years ago
npm install
3 years ago
- config .env file for database
3 years ago
3 years ago
cp .env.example .env
3 years ago
- migrate database
3 years ago
3 years ago
npm run migrate up
3 years ago
- run the app
3 years ago
3 years ago
npm run start
3 years ago
- test
3 years ago
3 years ago
curl -i -H 'Accept: application/json' http://localhost:5000/
3 years ago
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!
3 years ago
}