Quickstart

17min

Back4app is a low-code backend platform that simplifies building modern applications. This guide will help you quickly set up Back4app and start saving data.

Back4app Main Features:

  • Database
  • Cloud Code Functions
  • APIs (GraphQL and REST)
  • File Storage
  • Authentication
  • Push Notifications

5-minutes quick start

After creating your Back4app account and first app, go to your App Dashboard and get your App Keys under App Settings -> Security & Keys(check the image below). Note that you will always need two keys to connect with Back4app, the Application ID, and another key according to the SDK you will use.

Document image


1. Install and Configure the Parse SDK

To integrate the Parse SDK, follow these general steps:

Install the Parse SDK:

  • JavaScript / Node.js: npm install parse --save
  • React Native: npm install parse @react-native-async-storage/async-storage --save, then run cd ios && pod install
  • Flutter: Add parse_server_sdk_flutter to pubspec.yaml
  • Android (Java): Add your app's build.gradle inside dependencies{}:
build.gradle

  • iOS (Swift): Install CocoaPods (sudo gem install cocoapods) and add Parse to your Podfile

Initialize the Parse SDK with your Application ID and the appropriate key:

JS


The example above is for JavaScript/Node.js. Adjust accordingly for your platform.

2. Save Data on Back4app

Create and save a sample object to confirm that the SDK is properly set up. Use the example below and adapt it to your programming language:

JS


After saving, you can verify the data in the App Dashboard on Back4app.

3. Platform-Specific Setup

JavaScript - React / Angular

  • Install the SDK: npm install parse --save
  • Initialize with your App Keys and Back4app server URL.

Flutter

  1. Add parse_server_sdk_flutter in your pubspec.yaml:
pubspec.yaml


2. Initialize Parse in main.dart:

Dart


Android (Kotlin/Java)

  • Include the SDK in build.gradle and configure network permissions in AndroidManifest.xml
  • Initialize in App.kt:
Kotlin


iOS (Swift)

  1. Add ParseSwift to your project using CocoaPods.
  2. Initialize Parse in AppDelegate.swift:
AppDelegate.swift


PHP

  1. Install the SDK with Composer by creating a composer.json with:
composer.json


Then, run composer.install.

2. Initialize Parse in your PHP script:

PHP


3. Save Data in PHP:

composer.json


.NET (C#)

  1. Install Parse SDK through NuGet Package Manager in Visual Studio.
  2. Initialize Parse in your application:
C#


3. Save Data in C#:

C#


REST API

  1. Save Data via REST by sending a POST request:
Bash


4. Additional Resources and Examples

There are many example apps and starter projects to get going

Find more examples in Back4app Templates.

What to do Next?

After completing the quick start, we encourage you to explore Back4app's key features through the guides below. You'll learn how to store and query relational data, implement cloud functions for backend logic, use real-time subscriptions to keep users updated, manage file storage, send push notifications, and set up authentication. Select the technology that best fits your project and enjoy the journey!



Updated 05 Nov 2024
Did this page help you?