User registration and social logins are extremely vital for any web application. It is the first step towards building any app, as the most basic functionality on any app would be a ‘user registration’ or logging in using ‘social accounts’. But, building an app with even these features takes a lot of time. I’m afraid, at least a week. So, we found out a solution for this. Our hosted API service lets you build an app with creating and managing user accounts along with a social login registration.
In this blog post, we’ll walk you through a tutorial where you can learn how to build a Ruby on Rails app with our Rest API with basic functionalities like login/registration, edit profile and more. And the best part? It takes just 15 minutes only.
You can click here to know more about our API.
To interact with the NBOS API Server, I have created a Ruby gem called “wavelabs_client_api“. The source code and for an easy reference, the documentation of this gem are available here. This gem is published in rubygems.org under the MIT license.
1.Install Ruby Version Manager(RVM).
2.Install the Ruby 2.2.3 & Rails 4.2.4 using RVM.
Detailed installation instructions are available here
Note: No database is required because our API server has got it covered.
Now, let us create the web application. Open a console and follow the instructions:.
$>git clone https://github.com/nbostech/wavelabs-rails-client-api.git $>cd wavelabs-rails-client-api $>git checkout -b release-1 v0.1 $>bundle install $>rails server
Open the browser and access your application.The home page would look like this.
Now you can use the following functionalities using the above application:
2. Login and Logout
3. Edit Profile Information
4. Change Password
5. Upload Profile Picture
6. Login with Facebook
7. Login with Github
8. Login with LinkedIn
9. Login with Google plus
10. Login with Instagram
The live application is available at Heroku Server
And there, you are all set to go. You haven’t just built a Ruby on Rails with basic login and registration functionality within 15 minutes, you are also all set to launch it into the market.
If you have any questions, feel free to post your comments and we’ll get back to you.