Quickstart Guide

Welcome to the Quickstart Guide for StarterAppKit! Follow these steps to get your project up and running quickly.


Step 1: Download the Source Code

Downloading the app
  1. Log in to your StarterAppKit account.
  2. Navigate to the Dashboard at /app.
  3. Complete the setup steps provided on the dashboard.
  4. At the end of the steps, download the following files:
    • iOS App Source Code
    • Backend (Server) Source Code
    • Constants.swift file (contains configuration for the entire application).

Step 2: Install Prerequisites

Ensure you have the following software installed on your system:

git --version

Step 3: Set Up the iOS App

  1. Extract the downloaded iOS App Source Code.
  2. Open the project in Xcode:
    • Use the command open StarterAppKit.xcodeproj or open the file manually in Finder.

Configure your Bundle Identifier:

Setting the bundle identifier
  • Go to Signing & Capabilities in Xcode.
  • Replace the default bundle identifier with your own (e.g., com.yourcompany.app).
  • Do the same for OneSignalNotificationServiceExtension (e.g., com.yourcompany.app.OneSignalNotificationServiceExtension)
Note: If you have a bundle identifier mismatch, the app will fail to build

Add the downloaded Constants.swift file to the project:

  • Place it in the root directory of your iOS project.
  • Ensure it is included in your app's target.

Run the project in the simulator or on a physical device:

  • Select a target device from the dropdown.
  • Press Cmd+R to build and run.

Step 4: Set Up the Backend

  1. Extract the downloaded Backend Source Code.
  2. Navigate to the backend folder:
    • Use the command cd backend.
  3. Install the required dependencies:
    • Run npm install to install all required packages.
  4. Set up the environment variables:
    • Duplicate the .env.example file and rename it .env:
      • Use the command cp .env.example .env.
    • Update the .env file with your database and API credentials.
For information on how to find the values / API Credentials for your .env file, take a look at the Third Party Integrations page.
  1. Activate your license and install the database:
    • Once your .env file is completely filled out, run the npm run activate command to activate your license and setup your database.
    • If the license is successfully verified, it will automatically set up your database and you should see a success message in the terminal.
Activating your license
  1. Start the server:
    • Use npm start to launch the backend.
    • The backend will be available at http://localhost:3000.

Step 5: Connect the App to the Backend

Connecting the app to your backend
  1. Open the Constants.swift file in the iOS project.
  2. Update the base URL to match your backend server:
    • Replace the placeholder with your server's URL, e.g., static let baseurl = "http://localhost:3000".
Note: iOS apps require HTTPS by default. For development, you can either: 1) Use a tunneling service like ngrok to expose your localhost over HTTPS, or 2) Configure App Transport Security (ATS) settings in Info.plist to allow arbitrary loads. The second option should only be used during development.

Step 6: Test the Application

  1. Launch the app on the simulator or device.
  2. Sign up or log in to verify the authentication flow.
  3. Test the backend integration by creating sample data or making API requests.

Step 7: Customize and Extend

Now that your app is running, you can:

  • Customize the UI: Modify reusable components or theme settings.
  • Add Features: Extend the backend with new API endpoints and integrate them into the app.
  • Deploy: Use tools like Heroku, Vercel, or AWS to deploy your backend to production.