How is it possible to let the android application to know each and every change on admin portal by real time.
Our system is a school based application that works on our own tablets. In system there are Teachers, Parents, Students and a super admin. The tablet has daily attendance management, grades, exams, meetings and so many features for a school system, now the same user entities will have all the features mentioned in the Admin portal as well. lets say www.ourtabletapp.com/admin
so we have a need to synchronize every change that occurs in Admin portal to Android application in real time. (Then and there)
Currently we do have one way synchronization as in any changes to mobile app (new records, modify records and etc) eg: adding a new meeting, then updating it and so on. which is done using a REST API we have written, so mobile app will call the API each time to connect with our DB and synchronize.
Question is what are the ways we have to make it two way synchronization? (Admin portal changes should reflect the mobile application immediately.)
Update:
mobile app is located somewhere else in users mobiles. when a record is added or updated, how to send a request from Admin portal to mobile application and update the sql lite database in it?
you can use the same logic that already has been implemented to notified the admin panel when someone update through the mobile app. let's say if anyone update the any student record from the admin panel , you have to update the DB first [ that already done i think ] and than you have to make the call of REST services that send the call to mobile app with the updated data.
let me know if you need any more help on this. you can share your structure for the better answer if needed.
Related
I've a question for my personal project. I've two websites prestashop 1.7.7.x (two databases). I'cant active multisite on this shop this functionnality is instable
I search how to duplicate customers accounts avaibles in ps_customer.
I don't want to synchronize the database. When a customer registers on site A I want to insert the customer account on SITE B and vice versa.
My first idea :
Make a php script automaticaly run with CRON TASK, this script check on db1 every account with condionnaly email and compare with db2 if not email found, I insert the data.
I've a problem with my sql query : (many many data returned,
a cause of the Cartesian product)
select db1.ps_customer.email from db1.ps_customer, db2.ps_customer where db1.ps_customer.email!=db2.ps_customer.email;
If you have any suggestions or information that could help me. Thank you very much.
Have a nice day,
The "Prestashop way" to handle this is by creating a module that you will install in both sites connected to the customer registration hook (actionCustomerAccountAdd) that "invokes" the prestashop API webservice on the other website , so when a customer succesfully register the hook is fired and customer with the same data is created on the other side.
You should start here : https://devdocs.prestashop.com/1.7/modules/
And here more details about webservice : https://devdocs.prestashop.com/1.7/webservice/
Remember that both sites must share the same cookie_key in the configuration file otherwise the hashed passwords from site A will not work on site B and vice versa.
I will have an e-commerce website connecting to my own REST API that will connect to a MySql Database.
I want to be able to connect a POS(Point of Sale) in a physical store to this same REST API and allow for real time syncing e.g. when an product is purchased online, the inventory is updated to reflect the quantity of that product remaining, and this updated inventory of that particular product will also be updated in the POS. I want this same behaviour to be achievable if the product was bought from the physical store using the POS. How do I achieve this?
I have no problem with the e-commerce website part, but I don't know where to begin with the POS part of the physical store. Do I have to create my own POS or can off-the-shelf POS achieve this?
Any advice will be greatly appreciated,
John
Not the platform to ask these kind of questions. But I try to help out anyway (at my own risks).
Most (if not all) POS come with their own ecosystem including the database. What you want is a POS that uses your own database to keep everything in sync between the website and the POS.
Do some research to see if any POS let you connect to your own database. But I doubt they will cause most POS already integrate their own data and features.
Since all you want is an interface. Put in your mind you are building a second website. Just this time it works on the desktop. There are tools that could help you with that such as Electron. With Electron, you use web technologies to build a desktop app. If you want to offer it on tablets however, you could just build a tablet app with React-native, Ionic or NativeScript. Last but not least, there are existing web-based POS already. So you could just build another website to act as POS and make it connect to the same API used by the e-com website. Sorted!
I hired a programmer to make a basic program in for me that is written in PHP.
I am hosting it on my own web host.
It is basically a web crawler that returns data on certain websites that are entered into the database.
This software was created without any "user account" functionality- it is just a single instance that is not even properly protected by a login/password button.
I want to finish developing this cloud-hosted software and then be able to sell it to people on a monthly subscription. Obviously I will need a way to create an account for every person that signs up- so they can each access their own account of the software with their own database of whatever websites they want to enter into the software(in other words just how every cloud software works).
My question is definitely a newb one, but basically I want to know, what technology is used to do this? What kind of program/service/code is used to add simple "user account functionality to a basic cloud software?
P.S. I would ask the guy who made it but he took my money and ran after making a a piece of junk.
The way that this is done is to modify the PHP to add a login feature. There is unlikely to be an out of the box solution that will work. Rather than having to create a new database every time someone signs up, you would modify the existing database to add a user column to each table, and then update the code to only display the data for the currently logged in user.
Unless you want to spend a few months learning PHP and whatever database you are using, you're going to want to hire another programmer to do this for you. Someone good would charge $200-300 for this. Or you can try taking the lowest bidder for $50 or so, and hope they don't run off too.
I'm using Desire2Learn as my LMS and am also in the process of creating an external learning tool that users will then play. When they are finished, they will have their score (grade) submitted along with some other metrics.
I know that it's trivial to submit grade data back to the LMS, but is it possible to send data other than grade data back in a form that is visible to the user the next time he/she signs on?
Thank you!
This all depends on what you mean by 'send data other than grade data ... that is visible'.
You could implement the LTI Tool Provider as a Remote Plugin in widget form that could go on a course home page. When a student visits the course home page, the widget auto-launches to the Tool Provider, and you can control the visual appearance you send back, based on whether the student has already played, whether they're seeing "the high score screen", etc, etc.
You can also combine use of pure LTI in your Tool Provider and the Valence Learning Framework APIs to help build a richer user experience. You might decide, for example, to record information for a student in their User Profile, or get richer access to the gradebook to provide more complex reporting for student performance than offered by pure LTI Outcome Service (in this case, your Tool Provider likely needs to be provisioned with an instructor or admin user account that will have access to the gradebook to make Valence calls, because the student user actually interacting with the Tool Provider UI won't have such access).
D2L's LTI implementation is conformant only with 1.x at this point, and supports only the basic Outcome Service (letting you send back a single, numeric grade).
I and some of my friends are trying to create a web based ERP system. I and five other guys are responsible for the Sales and Inventory management module and some other guys are doing the financial accounting module. The financial accounting is depended on the sales and inventory module.
The application is like this-: there would be three different levels of users who can log in to the system.
One will add/delete/update the sales information in the app
One will add/delete/update the inventory information in the app
The last one will deal with the financial accounting where he will add/delete/update info and sometime generate reports
We are using Codeigniter Framework. Now the problem is as we are doing the task from different locations I am very confused about how to integrate the modules(Financial Accounting+ Sales+ Inventory) when we are done with it.
Would you please kindly give me some suggestions on what steps should we take while developing it so that we can integrate those modules easily when are done.
Thanks in Advance :)
P.S If I have missed any information to provide, please let me know :)
The database design, and membership roles and permissions should be defined before you split your ways with the other team.
Once these are established you shouldn't have too difficult of a time developing your models and controllers that are specific to your sales and inventory management (while they are working on the ones that are specific to them). The same is true with your views, however I would structure both in a way that can easily be placed into a content area so that you can have someone later throw up some navigation / footer / header unless you already have a navigation schema setup and some design done.
Basically, there should be no issue with working in different teams if you're both working on the same database schema.