5 ms·
Show HN: Diamond – Full-stack web-framework in D
- 52-6F-62 9y agoI'm intrigued. I've previously considered D and vibe.d for a web project, but ultimately went with something else. I'm curious what a project might look like in completion. Are there any examples? The repo is currently empty... https://github.com/DiamondMVC/Examples https://github.com/DiamondMVC/Examples
- bausshf 9y agoThe website itself is made with Diamond and the repository can be found here. https://github.com/DiamondMVC/Diamond-website https://github.com/DiamondMVC/Diamond-website -- I haven't come around to made some examples due to my small amount of time, but eventually I hope I can make a little time to make some good examples.
- 52-6F-62 9y agoThat helps, thanks
- jordigh 9y agoNo Postgres support yet? But there's an ORM! I wonder how easy it would be to make the ORM use Postgres instead of MySQL.
- bausshf 9y agoShould be pretty straight-forward with https://code.dlang.org/packages/vibe-d-postgresql https://code.dlang.org/packages/vibe-d-postgresql - If you want you can feel free to open an issue on the github repo, that way I won't forget it and I could come around implementing it asap.
- dom96 9y agoSeems the website itself isn't loading? http://diamondmvc.org/ http://diamondmvc.org/
- bausshf 9y agoThank you, it should be up and running again
- bedros 9y agoany examples of templates? I hated the templates provided by vibed they are too implicit for my taste
- bausshf 9y agohttp://diamondmvc.org/docs/views http://diamondmvc.org/docs/views
- deleted 9y ago[deleted]
- greatNespresso 9y agoGot a 502 error on github, HN effect ?
- bausshf 9y agoSeems to work fine for me
- rw 9y agoWhy the hard dependency on MySQL?
- bausshf 9y agoWell, it's not a hard dependency. Diamond works fine without MySQL, it only depends on the mysql-native library, but not on MySql itself. It's fairly light-weight, so it has no big impact on the framework itself.
- jordigh 9y agoI love how fast D websites can be! http://diamondmvc.org/ http://diamondmvc.org/
- ByThyGrace 9y agoIt lists "Security (CSRF Protection, Validation, Cryptography, SSL, Network etc.)" as a key feature, but https://diamondmvc.org/ https://diamondmvc.org/ doesn't load...
- bausshf 9y agoIt's hosted on a small shared vps and I don't have a ssl certificate so there's no https for it. Once I can afford that and a better host it'll exist of course. I have no fundings and everything related to it comes out of my pocket as of now.
- ben-schaaf 9y agoWhy not use letsencrypt?
- bausshf 9y agoI'll look into it
- bobwaycott 9y agoLetsEncrypt is easy and free. :)
- rambojazz 9y agoI think... if you're making a web framework you should at least have a routes-controller-view helloworld example in you README.
- festivemanner 9y agoVery nice!
- bausshf 9y agoOkay, so I figured I'd give a little back story to the project and feel free to ask anything too! So the project initially started back in 2016 and I originally just made it as an alternative template engine to the template engine in vibe.d, because I didn't like the style of their "Diet" templates and came from an ASP.NET background, so I wanted to make something that was in the style of razor and then I just kept adding features onto it, until it eventually became a MVC Framework, then I kept missing certain features that I would implement in sites, instead of having generic solutions, so I figured I might as well add them to the framework and that's how Diamond went from just a MVC / Template Framework to a full-stack web-framework. There's still a lot of work to be done, but it's most definitely usable. I want to thank everyone who's shown interest in the project as I've spend a lot of time on it and I'm currently the only person working on it and I have nobody backing me with funding or anything, so hosting of the website, development of the framework etc. is all done by me so far!