Comments (6)
i am having a hard time understanding how sample project use salat plugin and why it has some of the code.
For example why it has 2 controllers if all it does is showing a list of users from the database and allow to get one by Object id.
Can someone explain the architecture underneath. It's problematic to start using something without a strong knowledge of technology and any documentation. Description says very little about why I need salat plugin and how would I use it and how sample project is suppose to work
from play-salat.
I've got to say, I've got the same problems. I'm quite new to Scala and Play Framework and just can't get it work.
from play-salat.
the magic behind theObjectId conversion lies with importing the implicit conversions for it.
Make shure you have added them in you bould.sbt or Build.scala
https://github.com/leon/play-salat/blob/master/sample/project/Build.scala#L15
from play-salat.
Alright, quick update: I tried getting it work almost on a weekly basis. Today it suddenly worked!
I made sure I'm using Play 2.2.1, created a new project, carefully copied stuff from the sample to my project and I had almost no problems. It works, but I get a warning, when compiling:
[info] Compiling 14 Scala sources and 2 Java sources to …/target/scala-2.10/classes...
[warn] there were 1 feature warning(s); re-run with -feature for details
[warn] one warning found
I don't know if this is related to play-salat, I don't even know what to re-run with -feature (compile -feature
is not working and starting play -feature
neither).
Anyway, at least I can start doing something now. Thanks!
from play-salat.
I think due to lack of support or documentation because nobody has time to work on both I'll drop efforts and move away to reactive-mongo - it seems to be less mature but in active development.
I think this wiki page should have a clear message at the top of it with big font saying "attention! little documentation, almost no samples, no explanation how it works and why, very brief comments - SUGGESTED NOT TO USE.
my strong opinion - if you don't do it right - don't do it at all, and don't recomment anyone to use it. I was surprised this plugin is mentioned on play framework page - there should be an indicator of how useful it is.
Apart from that - if somebody wants to play with the plugin and experiments and spend a lots of time trying to guess what's happening - you can do it, but it's not for production apps.
and by the way - lack of time is not an excuse for a good documentation : check out reactive mongo plugin for play:
from play-salat.
The plugin works, the sample works.
I did this plugin because I needed it myself. You're not forced to use it, and if you don't like the documentation help me out by writing some better documentation. It's all about trying to help each other by not having to reinvent the wheel everytime you need something.
I can understand the frustration when something isn't well documented. But it all boils down to time and money. If your're willing to pay me, I would gladly update the documentation with more examples and inline commenting.
from play-salat.
Related Issues (20)
- novus.salat not supported scala 2.10 HOT 1
- Create implicit json read for List collection which might be missing from input json HOT 1
- UNRESOLVED DEPENDENCIES com.novus#salat_2.10;1.9.2-SNAPSHOT HOT 8
- Does 1.2-SNAPSHOT support Play 2.1? HOT 3
- Support more than int max value for capped collection size HOT 2
- new release without snapshot dependencies HOT 5
- Create Snapshot version HOT 1
- Update salat dependency to 1.9.3 HOT 6
- Convert to MongoClient instead of MongoConnection
- play-plugins-salat doesn't compile with play 2.2.1(ObjectId not found) HOT 4
- Update to Salat 1.9.5 HOT 4
- Using play-salat with scala 2.11.1 HOT 5
- play-salat doesn't work with activator-1.2.8 (play 2.2, scala 2.11) HOT 2
- Need support for "play-json"
- This plugin doesn't work with play 2.3
- Using deprecated authenticate method
- Error on Play 2.4 HOT 9
- Could not find a suitable constructor in se.radley.plugin.salat.SalatPlugin. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private. HOT 1
- Salat Plugin not working after upgrading to Play 2.4.2 HOT 1
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 play-salat.