Ionic 5 Food Ordering Template
  • Introduction
  • Ionic 5 Food Ordering App and PWA Template
  • Why to use this Template
  • Initial Setup
  • Running the app
  • Template features
    • Screens
      • Login, Signup, Forgot Password
      • Food Ordering Flow
      • Offers Pages
      • Address Pages
      • User Profile and Settings
      • Restaurant and Product Lists
      • Cart Page
      • Search Page
      • Filters
      • Chat
      • Order History
    • Features
      • Geolocation
      • Chat Support Page
      • Google Place Prediction
      • Social Sharing
      • Device Compatibility
  • how to use this template
    • Two ways to use
    • Modifying Code
    • Removing a Page
    • Removing a plugin
    • Integrating Back-end
    • Add More Features
  • how to build app and pwa
    • Building App on Device
    • Deploying app as PWA
  • Extra
    • Troubleshooting
    • FAQs
Powered by GitBook
On this page
  • Data Structure
  • Back-end options
  • Step 1 — Choose a back-end Technology
  • Step 2 — Connect the back-end to the app

Was this helpful?

  1. how to use this template

Integrating Back-end

How to integrate back-end in this template

PreviousRemoving a pluginNextAdd More Features

Last updated 4 years ago

Was this helpful?

Data Structure

In environment.tsfile, there is dummy data placed to mimic the behavior of a back-end.

E.g. Following images shows the data and its structure for offers on various pages. The data is in JSON format.

Data is imported in the page.ts file as this.service.offerSlides . Here, service is service provider name, offerSlides is the JSON data in service

Back-end options

To make the app fully operational you will need to attach a back-end to the app. This will require several additions and you will need the assistance of a back-end developer.

We will provide a glimpse into the things you will require

Step 1 — Choose a back-end Technology

There are several options when it comes to back-end. Some of the major ones are

  1. Node.js custom back-end

  2. Django custom back-end

  3. Ruby-on-rails custom back-end

  4. GO back-end

We recommend starting out with Firebase, if you want quick turn-around of features. Firebase is a BaaS platform and comes with a bunch of ready-made functionality, like

  • Storage

  • Database

  • Analytics

  • In-app messages

Step 2 — Connect the back-end to the app

As explained in the section above, you will need to replace the Data coming in form individual JSON files with the data coming in from APIs (from your back-end).

Firebase back-end (node.js) ()

To manage the data efficiently, you will need to arrange all API calls, and data manipulation in a single location. You can manage API calls with HttpClient services or

Read intro blog here
Push notifications
Real-time database and much more
Anonymous login
Email login
firebase functions.