Save data locally using SQLite and on server also

I have to save data locally using SQLite in device and after that when user click on sync button then data which saved in device will be save on web server in ionic app…So what I have to do???..Please anyone help me and give me proper example

You need a web service or API running on your server that can receive some data and save it their. You can choose which format you want to submit it to the API and how you want to save it on the server. Any requirements?

Yes I want data in jSON format

Try this guide:

Thank you @LoLStats :relaxed: