Skip to content

Inventory service exposes REST APIs for managing medicine inventory and dispensing medicine according to the prescription to the patient.

License

Notifications You must be signed in to change notification settings

ivor11/PSMRI-Inventory-API

 
 

Repository files navigation

AMRIT - Inventory API

License: GPL v3 branch parameter

Inventory service acts as a medicine inventory management and dispensing unit that helps in distributing the medicine to the pateint as per the prescription. Exposes below set of features as REST APIs.

  • Item tracking
  • Purchase order management
  • Inventory reports
  • Create, read, update, and delete inventory items.
  • Get inventory levels.

Building From Source

This microservice is built on Java, Spring boot framework and MySQL DB.

Prerequisites

  • JDK 1.8
  • Wildfly 11
  • MySQL
  • Springboot V2

Installation

To install the inventory module, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the dependencies mvn clean install

Creating a build configuration and running the application

  1. You can copy common_example.properties to common_local.properties and edit the file accordingly. The file is under src/main/environment folder.
  2. Run the spring server with local configuration mvn spring-boot:run -DENV_VAR=local

Open the application in your browser. The inventory module will be accessible at http://localhost:3000/inventory.

Usage

Inventory module can be used to track items, create purchase orders, generate inventory reports, and scan barcodes. To access the inventory module, navigate to http://localhost:3000/inventory in your browser. You will be able to view all of the items in your inventory, create purchase orders and generate inventory reports.

All other features have been exposed as REST endpoints. Refer to the SWAGGER API specification for details.

About

Inventory service exposes REST APIs for managing medicine inventory and dispensing medicine according to the prescription to the patient.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%