CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Google Summer of Code »
  • CiviOffline Project - GSoC 2015
Pages: [1]

Author Topic: CiviOffline Project - GSoC 2015  (Read 1191 times)

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
CiviOffline Project - GSoC 2015
February 20, 2015, 10:15:09 pm
Greetings everyone,

I am an avid FOSS enthusiast, primarily concerned with developing and learning new possibilities that would help nurture and contribute significantly to the open-source community.

It will be very delighting to work with an open-source community, such as CiviCRM. I am very much interested to work , bond and network with new people having same charisma and enthusiasm. I would love to contribute my part to CiviCRM community, also I am looking forward to take and develop interesting UI projects for Google Summer of Code 2015.

My primary focus would be to work on CiviOffline. I would like to know some basic information about the working of CiviCRM core functionality. Following the description present on the ideas list which says client applications are programmed in HTML/JavaScript, also these tools can run on a tablet, netbook, laptop, etc. Could anyone brief me about the platform to be used here ? Are these client applications would principally be working on any modern web browser or there is need to develop a native mobile application ?

I am looking forward to hear from the community and their mentored thoughts on developing such application which can guide me to proceed further.

Thank you in advance.
-for the love of code and always learning

Anudit Verma

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviOffline Project - GSoC 2015
February 20, 2015, 10:50:15 pm
Hi and thanks for your interest.

Right now, part of the project is to imagine various options on what/how to do it.

In can think of several offlines:

1) have a part of the server that provides a mobile friendly version of civi, but with the option to work offline: tell that the html+css and other assets can be stored (so the software becomes offline) and use localstorage to store the contacts

I haven't checked what are the options with more modern smartphone, so don't know how well it could work. Does someone has an up to date view on that?
http://diveintohtml5.info/offline.html Not sure if it's still relevant, if they are better options now.

so the web apps (we use anguar more and more) would talk to the api on the server or to the localcache based on if offline or not and what type of action

2) app+localstorage
it's like 1) expect it's distributed as a native app instead or browsed.

3)app+existing apps
with cordova, you can access some of your smartphone via a javascript api
http://cordova.apache.org/
So you could use your normal address book as a front end to civicrm, and synchronise the contacts in civi with the contacts in your phone, same with activity and your calendar...

It's likely to need to define what groups you want to save for offline, as you don't want to store all the subscribers to your newsletter on your mobile. It could be more or less smart (eg. automatically add any contact you've had an activity with...)

Would be great if you could look at cordova and offline html5 (localstorage, manifesto...)

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: CiviOffline Project - GSoC 2015
February 25, 2015, 03:02:31 am
Hi,

Thank you so much for providing me with such an insight. It feels great to hear back from the community.

When I thought of developing this offline client application at the browser end, I was going with HTML5  (playing around with cache manifest, local storage, running on local server) but in between the development process came the moment of realization that one needs to go through with some reconfigurations of the web server in order to gain control over the cache manifest file (made changes in .htaccess file) which I think one should not follow that while in developing terms and work ethics.

The idea of developing a native mobile app for CiviOffline seems more fair which can also serve as a subsidiary to Civi smartphone project (as in synchronising contact, address and daily log details) .
I think with the help of Apache Cordova, PhoneGap, eMobc or any other open source framework that seems fit according to the requirements and activities to be performed we can develop such an app.

Would initialise the development of a prototype which can bear the potential to work with an api provided by Civi server components for data access/modification.
Further I want to seek more community views and their thoughts that would help me gain more about this overall project.

Thank you.
-for the love of code and always learning

Anudit Verma

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviOffline Project - GSoC 2015
February 26, 2015, 06:26:50 am
What was the problem you had with the cache manifest?

Have you tried any of these libraries? (I haven't, so don't have any opinion)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: CiviOffline Project - GSoC 2015
March 10, 2015, 11:22:51 am
Hi again,

I have come across the following shortcomings/downsides while working with cache manifest :

*When every time for the HTML5 webapp to run offline, the cache manifest is to be modified but the browser doesn't notices the changes until the cache manifest file has changed itself. For that to work one needs to make changes in the actual code in the file.

*To make the webapp cacheable certain reconfigurations are required in the web server. For example on an Apache based server one needs to modify the main server configuration file(httpd.conf) or certainly make a .htaccess file for the same.

*For the DOM events, when the cache manifest has changed then the browser will initiate downloading event and start re-downloading all the resources listed in the cache manifest.If in case the downloading was interrupted then cache manifest would give an HTTP error 404/410. If the cache manifest file fails to download then the process of caching the offline webapp will be unachievable.

By further more research for building an offline HTML5 webapp I came across a finer alternative to achieve the offline appcache functionality without the need of any .htaccess or server configuration file. This can be achieved by creating a .php file and set content type by using the PHP header function instead.
Below is the code showing how it is done :

//Code starts

<?php
header("Content-Type: text/cache-manifest");
?>
CACHE MANIFEST
# revision version

NETWORK:
*
CACHE:
//files


//Code ends

Also I am researching more into the web for developing an efficient way that will greatly help this project into a turning reality. Further on the sidelines I am focusing on gaining more about the civicrm-core codebase, also I have started adding more contribution on StackExchange sites and hope to submit/contribute more Pull Requests on issues.civicrm.org

Thankyou
-for the love of code and always learning

Anudit Verma

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviOffline Project - GSoC 2015
March 26, 2015, 01:42:38 am
Quick reminder, not sure if the student(s) interested have done it already for this project, but you have to register and submit the proposal before tomorrow

http://forum.civicrm.org/index.php/topic,36143.0.html

If it's done already, all good, we'll discuss internally and with you and let you learn better our development workflow and tools we use and give you a chance to mingle with the community
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Updates : CiviOffline Project - GSoC 2015
April 12, 2015, 02:55:16 am
Hi,

I am posting some progress updates on setting up development environment for CiviCRM. I have,
-git cloned civicrm-buildkit
-already had installed NodeJS, Apache Server and git (checked only for updates)
-installed CLI tools for CiviCRM.

Also I bit concerned about posting my major updates on civicrm.org blog, also I have registered an account on it.
Could someone help me out on how I can start blogging on civicrm.org Do I need some privileges by the system administrator to activate my blog so that I can proceed further ? or is there is an option in profile settings that I am missing out ?

I am eagerly waiting for the helping insights from the community.
Thank you.
-for the love of code and always learning

Anudit Verma

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Updates : CiviOffline Project - GSoC 2015
April 12, 2015, 02:06:43 pm
Quote from: Anudit Verma on April 12, 2015, 02:55:16 am

I am posting some progress updates on setting up development environment for CiviCRM. I have,
-git cloned civicrm-buildkit
-already had installed NodeJS, Apache Server and git (checked only for updates)
-installed CLI tools for CiviCRM.
Nice to hear, well done.

Quote from: Anudit Verma on April 12, 2015, 02:55:16 am

Also I bit concerned about posting my major updates on civicrm.org blog, also I have registered an account on it.
Could someone help me out on how I can start blogging on civicrm.org Do I need some privileges by the system administrator to activate my blog so that I can proceed further ? or is there is an option in profile settings that I am missing out ?

We'll grant you the right to post on the blog once the program starts. And in general, you'll get the opportunity to share the draft with your mentor and others that will help you finetune it before you publish it.

Does it clarify?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: CiviOffline Project - GSoC 2015
April 13, 2015, 01:01:29 am
Hi again,

Thank you for clarifying my doubts, as for now I will continue posting my updates on this post. Also I want to mention that currently I am going through the civicrm-buildkit documentation.
I am eagerly waiting for the program to commence.

Thanks.
-for the love of code and always learning

Anudit Verma

MOOD-TOUR

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.6.7
  • CMS version: WordPress
  • MySQL version: 5.6
  • PHP version: MySQL 5.5 auf PCIe-SSDs
Re: CiviOffline Project - GSoC 2015
September 17, 2015, 11:29:44 pm
Hello Guys!
I wanted to ask whether there are news about CIVIoffline?! In order to work quicker (!) and independent from the Internet (our NPO works a lot outdoor in nature) I would appreciate an offline terminal/client very very much. Unfortunately I can't help technically )-:
If the was a donation box in order to push this movement, let me know!
All the best, Sebastian

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Google Summer of Code »
  • CiviOffline Project - GSoC 2015

This forum was archived on 2017-11-26.