Sunday, 27 December 2015

App with CRUD Functionality - User Management using IONIC Framework Phonegap/Cordova [Tutorial/An Overview]


This is a simple app to implement CRUD (Create Read Update Delete) functionality using IONIC Framework on the top of Phonegap/Cordova. This application is designed for Iphone, Android and Windows Phone but can also be deployed as Blackberry Application. I name it as AppCRUD targetting User Management. I have also added some extra perks like visualizing the User Data using Charts.js and Angular Charts.

In this application I have implemented an additional functionality which is Directive. Directives are the part of AngularJS Framework which helps developer to extend the standard functionality. In this application, use of directive is applied to the "Add/Edit User Template" to focus the first Input Element in our View. You can have a look in the "/www/js/directives.js" and yes we have to add this directives.js file to our base html file that is "index.html" as well as to our Module as a Dependency in "app.js" file.


Setting Up the Project

Installation Required:
  • Node JS for NPM Packages
  • Cordova
  • IONIC Framework
  • Android SDK (for the deployment to the Device/Emulator)
  • IOS (you need a MAC for the deployment to the Device/Emulator)

Create Project Directory

Here's a link to the Github Repository IonicAppCRUD. You can either download a zip or simply clone it with Git Bash.
git clone https://github.com/DynamicRemo/IonicAppCRUD.git

Platform, Build and Deploy

cd IonicAppCRUD
After the navigation to the Project Directory, we can run our project with ionic serve command and the output will be displayed in the Browser.
ionic serve
Or we can have the App View just like the Mock Ups for IOS and Android, its a new cool feature by IONIC.
ionic serve --lab
Moreover, we can add IOS and Android Platform to our Project and can directly deploy to our Device.
ionic platform add android
ionic platform add ios
ionic run android
ionic run ios

Application Overview

Followings are the different views of Application: User Listing, User Add/Edit, User Delete, Reordering of User Listing and the Visualization of data using Angular Charts.

For feedbacks and discussion, please leave a comment. Thank You!




The VisualizED Twitter


 .
Visualizing tweets via search Strings, #Hashtags, Country-wide trends and from the @User Timelines. Helping the viewers follow the trend by visually understanding the most liked and most retweeted Tweets including statuses, pictures and other media files.

Revolutionalizing the way Twitter is used. Twitter is visualized to have a detailed insight of not only a particular tweet but its related, connected and neighbouring Tweets too. One can have a view of hundreds of tweets graphically with the favorite and retweet counts, string and hashtag searchs, follow Nationwise trend and can also visualize the timeline of particular User.

 



15 comments:

  1. thank you so much.. it's great, but where is php code ?
    could you share it ?

    ReplyDelete
    Replies
    1. I didn't get your question, PHP Code?
      There's no PHP Code required for this application.

      Delete
  2. hello its Work for me , but where is file user if i'am added new user

    ReplyDelete
    Replies
    1. With the concept of Modular Development, i have used Edit View also for the Add New User. In app.js file, app.config clearly explains that to Add User use Controller named "AddCtrl" and the Template "templates/edit.html". Cheers :)

      Delete
  3. It works fine on ionic serve but not on real device (ionic run iOS)

    ReplyDelete
    Replies
    1. You have to add IOS as a platform. Have you already done that?

      Delete
  4. Hello thanks for this great tuto
    I would like to kow where data are stoacked ? is there any database in your app ?

    ReplyDelete
    Replies
    1. Data stored as Local Storage on device.
      You can have a look at the userstore.js file and can find there window.localStorage['users'] for setting and getting of Data.

      Cheers ;)

      Delete
  5. Hello, thanks for source code! I Will try it!

    ReplyDelete
  6. thanks for nice app
    i found ionic many tutorials ebook
    https://goo.gl/7q3pEb

    ReplyDelete
    Replies
    1. Hi Ricard, what is the password? Thanks for sharing,

      Delete
  7. awesome its using localstorage , how if i;am using sqllite

    ReplyDelete
  8. Hi Ricard, what is the password? Thanks in advance, Best regards, Joselo

    ReplyDelete
  9. Great Tutorial, can you please share how to do this with sqllite ??

    ReplyDelete