https://github.com/nunoprolo/medicines
Web Medicines Application to manage portuguese medicines
https://github.com/nunoprolo/medicines
angular java medicines spring-boot
Last synced: 11 days ago
JSON representation
Web Medicines Application to manage portuguese medicines
- Host: GitHub
- URL: https://github.com/nunoprolo/medicines
- Owner: NunopRolo
- License: mit
- Created: 2024-06-23T20:06:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-09T21:05:19.000Z (about 1 year ago)
- Last Synced: 2025-01-12T05:11:35.281Z (10 months ago)
- Topics: angular, java, medicines, spring-boot
- Language: Java
- Homepage:
- Size: 655 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[issue]: https://github.com/NunopRolo/medicines/issues



# Medicines
Medicines app is a web application to manage portuguese medicines.
## Functionalities
* **Medicines List page**:
* List of medicines with pagination
* Search for medicines by any field
* Search medicine by medicine barcode scan
* **Stock page**:
* List of medicines in stock, with color code to identify which medicines are with validity, without validity, and less than 1 month validity
* Search for medicines in stock, by any field
* Filter medicines list by validity status
* Add medicine to stock
* Delete medicine from stock
* Notification when medicine validity expires
* **Medication Page**:
* Table with times of the day (Before Breakfast, Breakfast, etc) in the header
* In the table cells, there are the medicines associated with a time of the day
* Add medicine to a time of the day
* Delete medicine from the time of the day
* Add observations to the medicine entry
* Add image to a medicine
* Generate PDF of the medicines table
* Add temporary medication
* **Settings Page:**
* Add persons
* Delete persons
* Add day periods
* Delete day periods
## Run Through Docker (Recommended)
```
docker-compose up
```
## Run separately
### Java Backend Service
* #### Environment Variables:
```
DATASOURCE_URL=:5432/
DATASOURCE_USERNAME=
DATASOURCE_PWD=
WEBCLIENT_URL=http:///api/services/persistent_notification/create
HASS_TOKEN=
```
WEBCLIENT_URL and HASS_TOKEN are used for notification to Home Assistant.
* ### Build:
```
./gradlew build
```
* ### Run:
```
./gradlew bootRun
```
### Frontend
* ### Install:
```
npm install
```
* ### Run:
```
ng serve --host 0.0.0.0
```
* ### Open in the browser
```
http://localhost:4200
```
## Notes
* Medicines recognition by camera only works with SSL, or with local environment.
## Support
Open an issue [here][issue]