Integrating Back-end
Last updated
Last updated
In environment.ts
, there is dummy data placed to mimic the behavior of a back-end. All static data in all pages is imported from environment
E.g. Following images shows the data and its structure in swipe-able cards on the home page. The data is in JSON format.
Data is imported in the page.ts
file from environment
.
import { environment } from '@env/environment';
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
There are several options when it comes to back-end. Some of the major ones are
Node.js custom back-end
Firebase back-end (node.js) (Read intro blog here)
Django custom back-end
Ruby-on-rails custom back-end
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
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).
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 firebase functions.