Start your Ionic project from an App Template
Introduction
In this section you learn how to get started with an Ionic template and get ready to use Back4App in 4 steps.
Prerequisites
To complete this quickstart, you need:
- Visual Studio Code (or any web IDE you like).
- Ionic Framework.
- An app created at Back4App.
- Follow the New Parse App tutorial to learn how to create a Parse app at Back4App.
Step 1 - Get the template
- Download the template at our
GitHub repository, and unzip files in your project folder. You can do that using the following command line:$ curl -LOk https://github.com/back4app/ionic-quickstart-example/archive/master.zip && unzip master.zip
- Navigate to the extracted folder and install the depedencies using the following command line:
$ cd ionic-quickstart-example-master && npm install
Step 2 - Open the project template
- Open Visual Studio Code.
- Click on
Open folder
. - Navigate to the project folder and click on
OK
. - Wait for Visual Studio to open.
Step 3 - Set up app’s credentials
Update your strings values to set up the app’s credentials. Parse Javascript SDK uses these settings to connect to the Back4App servers. In order to do that, follow these steps:
- Open your home typescript file:
.../src/pages/home/home.ts
- Go to your App Dashboard at Back4App Website.
- Navigate to app’s settings: Click on
Server Settings
>Core Settings
block >SETTINGS
. - Return to your
home.ts
file and paste yourApp Id
andJavaScript Key
.
See more at our New Parse App guide.
Step 4 - Testing your connection
- Run your app on your browser.
$ ionic serve
- Wait until a new tab opens on your browser.
In order to see the page in a phone frame, press
F12
. - Login at Back4App Website.
- Find your app and click on
Dashboard
. - Click on
Core
. - Go to
Browser
.
If everything works properly, you should find a class named Installation
as follows:
It’s done!
At this point, you have learned how to get started with Ionic apps.