billyrigdon / TheWord

Flutter Bible Reader with a Generative AI assistant and social features
GNU General Public License v3.0
1 stars 1 forks source link

adding new stucture for backend #38

Open Amitkumarkoli opened 2 months ago

Amitkumarkoli commented 2 months ago

pr for #25

billyrigdon commented 2 months ago

So for this ticket, the actual logic in main.go needs to be split up. I don't really want to merge in empty files. Check out the backend of my project LibreTrac for an example.

Amitkumarkoli commented 2 months ago

hey! I just push new commit for this , in this all logic of main.go is split . so let me know this is what u want?

billyrigdon commented 2 months ago

Sorry, maybe I should've been more clear.

The files shouldn't be named with 'other', they should be named based on what grouping of functions they contain. Like user_verse_controller or friend_controller. Likewise for the models. The db context should be passed to the controllers instead of creating a new db.

Check out this link for what I'm describing; https://github.com/billyrigdon/LibreTrac/tree/main/Backend

Also there's been backend changes so you'll need to pull down the updated code.

Amitkumarkoli commented 1 month ago

I am sorry for late commit , I was busy actually . I recently add a new commit for this , can u please check this?

Amitkumarkoli commented 1 month ago

I added a new commit to it two days ago, can you please check it?