Penjualan is backend for this app FePenjualan-Mobile
Collection this API on this Berikut adalah struktur koleksi Postman dalam format list tanpa response:
Barang
- Barang
- GET
/api/barang
- GET
- Barang Detail
- GET
/api/barang/{id}
- GET
- Barang Terjual
type: terendah | terbanyak
- GET
/api/barang/terjual/{type}
- GET
- Create Barang
- POST
/api/barang
- POST
- Edit Barang
- PUT
/api/barang/{id}
- PUT
- Delete Barang
- DELETE
/api/barang/{id}
- DELETE
JenisBarang
- Get Jenis Barang
- GET
/api/jenis-barang
- GET
- Create Jenis Barang
- POST
/api/jenis-barang
- POST
- Edit Jenis Barang
- PUT
/api/jenis-barang/{id}
- PUT
- Delete Jenis Barang
- DELETE
/api/jenis-barang/{id}
- DELETE
you must setup .env file for configuration with db and export dbbarang.sql
to database mysql
set your environment copy .env.example
to .env
and set the
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=root
DB_NAME=db_name
$ git clone https://github.com/M-Julius/BePenjualan-API.git
$ cd BePenjualan-API
$ yarn install
$ node index.js
and now you can access on localhost:3000