moigagoo / norm

A Nim ORM for SQLite and Postgres
https://norm.nim.town
MIT License
381 stars 34 forks source link

Your project was used into HappyX docs ✨ #200

Closed Ethosa closed 10 months ago

Ethosa commented 10 months ago

Hi, I use NORM to write documentation for HappyX web framework

If you can improve NORM usage in this docs page, please, send PR 👀

Your work is really awesome, I love it!

PhilippMDoerner commented 10 months ago

Damn you work fast, nice to see HappyX progress!

This is unrelated to the issue in question here, but have you already built an "admin-area" kind of thing for happyX? Because basically once you have an ORM that becomes pretty doable (did it myself for Prologue and it's basically just a bit of playing around with generics to achieve this).

Ethosa commented 10 months ago

nope at this moment, but admin-panel is nice idea. I know that Django have an admin-panel 🤔

PhilippMDoerner commented 10 months ago

In that case (not to derail too much), if you want to implement something like it, it becomes quite possible with norm. Or any ORM if the necessary procs are implemented. Could even make a type-agnostic generic one using nim's Concept - Just require the mandatory procs to be implemented and act based on that, regardless of what the type is.

That's one of my future project ideas for "Snorlogue" where I did that with norm for the prologue server. Shouldn't be too hard to do for jester I'd assume.

moigagoo commented 10 months ago

If you can improve NORM usage in this docs page, please, send PR 👀

Will do, thanks!

moigagoo commented 10 months ago

@Ethosa I can't find the docs source though. How do I edit the docs?

Ethosa commented 10 months ago

@moigagoo here is all database documentation https://github.com/HapticX/happyx/tree/master/examples/website/src/docs/db

And source code for NORM here Translations also starts from here

moigagoo commented 10 months ago

@Ethosa thanks! I must say putting the docs in examples is... unconventional 😅 You may want to move them to something more obvious like docs 😁

UPD: Oh wait, it's not the docs, it's the examples.

I'd like to fix the actual prose please. Can I do that?

Ethosa commented 10 months ago

pull requests are welcome)

moigagoo commented 10 months ago

pull requests are welcome)

@Ethosa yeah but where do I make the PR to? I can't find the docs source unfortunately :-(

moigagoo commented 10 months ago

@Ethosa sorry, my bad. I now see that this is the source code for the docs. I didn't realize that on the first glance.