samples icon indicating copy to clipboard operation
samples copied to clipboard

Sample with a database

Open dre2004 opened this issue 5 years ago • 0 comments

Hello,

I am new to Beego and I'm really enjoying the framework, I was wondering if it was possible to include a sample that had a database back-end.

There are probably lots of ways to structure this but if a sample included one possible way (the idiomatic way) it would really be helpful for new people.

For example, it would answer some of the following questions (of which I'm unsure about myself).

  1. How do I connect my application to a database
  2. Where should my CRUD logic go (in the model or in the controller?)

dre2004 avatar Jul 28 '19 13:07 dre2004