shihjay2 / nosh2

NOSH ChartingSystem is an electronic health record system designed exclusively for doctors and patients. This is a new mobile-friendly version that is now based off of the Laravel PHP framework and jQuery. NOSH has FHIR, Bluebutton, ICD-10, GoodRX API, RXNorm API, Phaxio, and UMA support.
Other
74 stars 53 forks source link

Debugging nosh #172

Closed mohammadmahboubeh closed 3 years ago

mohammadmahboubeh commented 3 years ago

Hi there! How can I debug the project using vs code or phpstorm?

Thanks

shihjay2 commented 3 years ago

Make sure your ENV file as these settings: APP_ENV=local and APP_DEBUG=true

mohammadmahboubeh commented 3 years ago

Yeah there configured as mentioned. I mean how can I debug from docker container?

thanks from your prompt reply

shihjay2 commented 3 years ago

If you run NOSH from docker-compose, just run it without the daemon option (docker-compose up) and you can see all commands and network functions between each container (web server, database) in real time; is that what you mean?

mohammadmahboubeh commented 3 years ago

If I want to debug and develop it like changing the name of some fields to fit into vet clinic, I should use let say vs code to see the change in real time

shihjay2 commented 3 years ago

Debugging using docker-nosh is probably not the best way to do this if you want to test out new fields, UI, PHP changes. Docker images are ephemeral and any changes you make won't be saved and it's hard to edit changes directly in a Docker image since it's using a very sparse Alpine Linux build. Probably best to fork the NOSH2 repo and install it manually with Apache as the web server my MariaDB or MySQL as the database; and work off your local development machine to see changes in real time.

mohammadmahboubeh commented 3 years ago

I see. Tried many times to install it locally using Apache but too much errors got, then you advise me to use docker. If is it possible to send all the dependency must have or the steps of installation it would be much appreciate. Here is my email: mahboubeh1991@outlook.com

Thanks Dr.shihjay