I plan to make an app based rails site. The rails webapplication should only have authentication and the rest of the functionality are "apps".
The basic idea is that users in the future could develop their own functions.
What is the best soultion for this? Should i write my apps as a plugin or gem?
Point me in right direction, thanks.
engines
ps - whilst the railscast is rails2.3, you can find your own way to more modern practices from there - rails_admin is a good gem which is written as an engine and does some of the stuff you probably want your code to do - have a look inside it's source for more info and google "rails 3" & "engines" for more info, i'm not so clued up on it myself
Related
Hello EveryOne I'm New To Umbraco I did Some Simple Umbraco Sites and Im good with so far Based on my Humble .Net background My Question is : How can i Remotely Change the Content of My umbraco form Other Pc or Something like that using Web service or APIs or what ever Im Looking foreword For a Good answer
Thanks In Advance
Depending on your needs, you can create a webapi on top of your Umbraco instance. You'll have to implement the actions yourself.
See this reference on how to implement it
Another option is installing Umbraco Rest API. This will add functionality for managing content and media through a rest service. Haven't tried this plugin myself, so no clue if works in the current version.
Some additional information can be found here
I'm planning on building a developer API similar to what Uber and Yo have done. Is it possible to build such API if my app's backend is powered by parse.com? I don't want my custom API pointing to parse, but instead my own site.
I'm planning on using ruby, and was wondering if there would be any limitations over other options (not sure what options I have). Thanks
I'm not sure if it is possible using ruby, but I know it's definitely possible to build your own REST API.
We have decided to go a bit further and wrote a parse-angular seed project for developing web apps. It can be found here.
After you pulled it, do a npm install
As usual,
cloud code should go into cloud/main.js
express code: cloud/app.js
angular code: cloud/public/js/
Note that: You will need to change your AppId and AppKey in
config/global.json
cloud/public/js/app.js
As for custom apis, you can define your own in cloud/routes/api.js.
At this point you should have a nice parse-angular project set up and good to go.
If there's anything wrong, please feel free to open a pull request. :)
I start using laravel (ver 4) and I got to the point I need to use authentication on my website.
I tried to find package that will allow me to wrap the all idea of "standard" / simple authentication and the social one (like facebook, google+ and etc..).
I found ion_auth and with some extensions it's allow me to use one authentication library for all kind of users - but it only works in codeigniter framework.
After a lot of research I couldn't find any ready package that allows me what I'm looking for, Does anyone familiar with such library or had this kind of issue and can tell me how he handle it?
This is a paid library, but it works pretty well. https://cartalyst.com/manual/sentry-social
i had a good experience using artdarek/oauth-4-laravel. it also has got a nice set of examples for using with different login providers.
Are there any engines out there that would allow one to integrate a blog into an existing application/platform?
I'm quite new to rails but I am picking it up fairly quickly, and have implemented Devise, and Omniauth already, idealy I would like to have a blog implemented when a user logs in.
I've searched Stackoverflow, GitHub and other sources to no avail. However, I've heard Tom-Preston-Warner's Jekyll might work as a blog engine.
So my question is: Are there any gems, or tutorials that may help Rail's users implement blog engines into existing apps?
Jekyll uses git and files in a repo to build a blog, it's called a static site generator. If you want a rails engine, take a look at https://github.com/KatanaCode/blogit
One of the most popular blog engines out there is Refinery (https://github.com/refinery/refinerycms-blog). You can add the gem to your project and use it for your purposes.
It depends though how complex you want your blog. It's quite easy to throw together something using just a dedicated controller and a few views.
I have a phpbb forum and i am developing a rails application that will be used for a mobile friendly app. I need a way to perform SSO between phpbb and rails.
I found a ruby gem called phpbb-auth on github but it hasn't been updated in over 3 years.
My initial thoughts were to mimic phpass (which i believe is what the latest phpbb uses) in rails and then just have rails reference the phpbb_users table when authenticating with Devise/Warden.
However, that task became daunting and would become just another lib to manage.
My next thought was to write a plugin for Warden to check for a phpbb_session and if its there, then continue. Otherwise redirect them to the phpbb login page.
Has anyone come across doing this before, and if so what was the method you used.
I doing same thing right now (already succeed actually).
So, you basically have several options depending on your setup/deployment. Consider following:
Will you deploy your rails app and phpbb on same domain or different domains?
Have both sites access to each other db.
Which authentication system you whish to use? So, you'd like rails (i.e. devise, authlogic or whatever) authenticate and handle users or phpbb db auth (i.e. storing logins and password in phpbb users table).
So far, I've implement auth through phpbb db auth + single domain with my app (phpbb: forum.example.com, my rails app is on: example.com for cookie sharing). In this case you can use code from gem you have mentioned (phpbb-auth). It's not very hard. Code is still working fine (with some adjustments probably).
BUT
I do not like it this way :) I consider my site as a main app and do not want forum to handle my users...
So, as I understand starting from phpbb 3 you can write plugin (API docs) for external auth for phpbb.
There are several examples in Python and Django in the net. Looks like this one for same domain + db access. And looks like this one for doing things remotely with JavaScript. Those are in Python, but there's not too much Python inside, only some examples :), so you can easily adopt them for rails, I think.
This question discuss same stuff, but in more generic way.