Some questions

88 views
Skip to first unread message

james agada

unread,
Dec 16, 2013, 2:31:52 AM12/16/13
to themp...@googlegroups.com
I checked the m project previously and gave up when i could not make
headway. I just come back and I must say there has been tremendous
improvement in tooling and documentation. I still however struggle to get
proper documentation on several areas. Can anyone help me with
1. Does the map view still work? How can I implement a view that will show
a map with markers for various data points and have these data points
update automatically with data being entered by other users?
2. What exactly is bikini? How can it be used? Where are the bikini servers?
3. IS there a chart component/view? How easy is it to integrate third party
graphic components like charts into M.views?

hano

unread,
Dec 16, 2013, 3:05:55 PM12/16/13
to themp...@googlegroups.com
Hi!
at the moment we released the beta of version 2 and yes there is still much work to do with the documentation. But we are working on that at the moment.
The Map view is not included inside the beta release so far, but is planed for the final release. What I can tell is that the map view for version 1.x still works. 

This week we will provide some more information on how to use bikini. Bikini is our solution on how to interact with models on backend and frontend side. (a bikini and a model are good friends :D ) At the moment you find the bikini server files here: https://github.com/mwaylabs/The-M-Project/tree/absinthe/server Just install the dependencies with npm install and you need a mongodb (http://docs.mongodb.org/manual/installation/) Then start it with node server.js.
The frontend model has a store property. The store is a layer between the model and the persistence. You can use the M.BikiniStore, M.LocalStorageStore or M.WebSqlStore. If you use the M.BikiniStore you need to set a URL to your running instance. The server accepts a Rest API as well as a socket.io connection and will update all connected clients. Have a look at the addressbook sample app: https://github.com/mwaylabs/The-M-Project-Sample-Apps/tree/master/addressbook 

3. At the moment there is no chart library but it is pretty simple to install one if the third party lib supports bower. just run bower install LIBNAME

Please stay tuned for further improvements/features.
Thanks for sharing your thoughts with us. If you have any further wishes you could also create a github issue for them. We will discuss them and plan it for the upcoming sprint. I've done this for your ideas: https://github.com/mwaylabs/The-M-Project/issues/137 and https://github.com/mwaylabs/The-M-Project/issues/136

best regards
marco

Tomas Roig Martinez

unread,
Jul 8, 2014, 5:25:35 AM7/8/14
to themp...@googlegroups.com
Hi Marco, i've tried to do what you explain above and i've found that the last version of the dependencies doesn't support your server code anymore... However, it can be fixed quickly npm install sock...@0.9.17 and npm install express@3.0 or changing the package.json. That would be the trivial solution.The other one consists on readapting the code with the changes on the modules.

I would appreciate more information about how to use the bikini server, and how to engage the bikini server with MongoDB. LocalStorageStore works fine, but when i try to use bikini, i get this on the console:

ERROR: b h a n d l e r n o t i n i t i a l i z e d.                themproject.js (line 1043)
404 Not Found

3ms
         jquery.js (línea 7845)
SignupcontrollerController.show()                                  signUpC...ller.js (línea 39)
"NetworkError: 404 Not Found - http://localhost:8200/info"     info
 

Timo Weiß

unread,
Jul 8, 2014, 8:01:10 AM7/8/14
to themp...@googlegroups.com
Hi Tomas,

thanks for your message. I've just updated the package.json for a quick fix. The next few days, we will update the server module implementation with the new dependencies.
We really need the add some documentation for both, the client and the server stuff. We're currently testing some use-cases and we're probably extend the functionality of bikini.

To your error:
I'm not sure why you get these error. But i know that the URL should be http://localhost:8200/bikini/info.
I got to have a closer look to this.

Tomas Roig Martinez

unread,
Jul 18, 2014, 5:02:30 AM7/18/14
to themp...@googlegroups.com
Hi Timo,

thanks for the help, i'm waiting for the new bikini documentation. Now, i have another question: How can i delete the input in the bikini store?

Thanks in advance, and keep going with this amazing project!

Timo Weiß

unread,
Jul 18, 2014, 5:49:34 AM7/18/14
to themp...@googlegroups.com
Hey,

i've already added a few line to the README.md of the github repro: mwaylabs/bikini. But we will extend this soon. We also going to extend the functionality and make it more bulletproof.

I'm not 100% sure whether i got you right, but i think you want to perform a delete of an object?
If so, this is quite simple. Just call the destroy function of your model you want to delete.
eg.: myModel.destroy();
Hope this helps :)
Reply all
Reply to author
Forward
Message has been deleted
0 new messages