Comments (7)
It's actually pretty interesting that there's no built in model. This doesn't have to be another MVC. Having it handle routes, controllers, views, middleware, etc.. is quite a bit already. Being able to just plug in your own way of handling models and other business logic type stuff would be nice. Maybe there could be a separate shard for a "amber" type way of handling this stuff, but by default not in the amber shard.
from amber.
Perhaps we should remain ORM/REPO agnostic and add generators for different libraries?
from amber.
@oz We are considering to support Crecto for a Repo pattern type of models and Granite/Jennifer for Active Record Pattern with generators we still thinking about this one
from amber.
At the moment, I think this is the best we can do until we discuss technical details.
from amber.
That being said, seeing how the router is inspired from Phoenix, I though I'd find Crecto in there too. As long as it is easy to swap parts, I think that an "all-in-one" opinionated model makes sense (even if I had a different opinion on the ORM 😉).
from amber.
Here is the example app created by @fridgerator for using crecto with amber:
https://github.com/fridgerator/amber_crecto_example
from amber.
I am going to close this since we support granite
and crecto
. We can open a new ticket if someone wants to add jennifer
.
from amber.
Related Issues (20)
- Website funding is over and needs to be renegotiated every year with digital ocean. HOT 3
- Change from Github Actions -> CircleCI
- Improve Installation Documentation & Experience for Windows/Linux Users HOT 4
- `amber g ` creates system tests that are incomplete for controller/request testing
- `resources` macro _should_ accept a block for nesting unRESTful routes HOT 2
- Improve the Auth generated by `amber g auth` HOT 2
- Feature: Unify the API for config vars HOT 1
- Enhancement: Improving the generators for greater flexibility
- Enhancement: Automatically return 400 response if param validation fails HOT 1
- amber 1.3.2 regression test failure against crystal 1.9.1 HOT 5
- amber 1.4.0 test failure HOT 4
- Requests with `content-type` `application/json` do not parse params correctly
- Automatically generated mock data files
- Create Installation instructions for brew on linux
- Use Ansible to test installation instructions for different OSes HOT 2
- Sqlite dependency version missmatch HOT 1
- Inexistent docker image in generated Dockerfile HOT 2
- First registered connection cannot be nil HOT 2
- Automatically Create and Migrate Test Databases on Linux
- Discord server HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amber.