Skip to content

First pass at Pharmacy#90

Merged
Darren159 merged 2 commits intodevelopfrom
sai/add-pharmacy
Aug 2, 2025
Merged

First pass at Pharmacy#90
Darren159 merged 2 commits intodevelopfrom
sai/add-pharmacy

Conversation

@Nsohko
Copy link
Copy Markdown
Member

@Nsohko Nsohko commented Jul 29, 2025

Hi Darren,

Added backend support for the pharmacy tab.

Mainly added new endpoints and models to support as necessary

Also btw, Idk why the db is dockerized, so idk how to push new changes to the db lol. I put the insert commands for the table inside the setup.sql file (the three tables that are uncommented), so youll prolly need to go and manually insert them

Can just type: psql -U jieqiboh -d patients -h localhost -p 5432
The the password is postgres

Then can just copy the command to insert the tables

Also, Idk why the compiled binary is being used, so I didnt compile my code into the binary. I think it makes more sense to compile once at the end than compiling every time, cuz that makes testing kinda slow (unlesss Im missing something)

So anyway till then please run the backend using the command: go run main.go, instead of ./sothea-backend

@Nsohko Nsohko requested a review from Darren159 July 29, 2025 16:58
@Nsohko Nsohko self-assigned this Jul 29, 2025
@Darren159 Darren159 changed the base branch from main to develop August 2, 2025 11:01
Copy link
Copy Markdown
Contributor

@Darren159 Darren159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Darren159 Darren159 merged commit 8278ecf into develop Aug 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants