AppNest Project
SurveySparrowAppNest
  • What is AppNest?
  • AppNest Project
  • Project Guide
    • Step 1: Getting Started
    • Step 2: AppNest Tools
    • Step 3: Plan Your App
    • Step 4: Build Your App
    • Step 5: Key Considerations
    • Step 6: Guidelines
    • Step 7: AppNest Project Perks
    • Step 8: Submit your App
  • What to build?
  • Final Considerations
Powered by GitBook
On this page
  1. Project Guide

Step 5: Key Considerations

To ensure a smooth experience using SSDK CLI and Twigs, we recommend you follow the below points. This way, you will not have to deal with unknown issues and continue building your innovative application.

  • Alert messages shouldn't be actual API messages. They should be clear and understandable and guide users with the next step.

  • Make sure the console logs don't have any sensitive information like access tokens or user credentials.

  • Don't perform any unadvisable changes on any configuration files like manifest.json.

  • Twigs provides a CSS property on most of its components to add custom CSS. It is strictly restricted to not use any of Twigs Components’ class names to override the styles as the class names get changed on production.

  • It is mandatory to use SSDK CLI’s request methods to make API calls.

  • Make sure to remove unused variables as it might throw errors when running the ssdk pack command.

Note: In the server.js file present in the server folder, when importing a module from your folder using the require function, it returns a promise. So, you need to await the require call and then use the module. Below is an example.

  • In the server.js file,

const db_schema = require("./db_schema")

async function handler(){
    const db_schema_obj = await db_schema;
    
}

In the db_schema.js file,

const db_schema = {
    id:{
        type: "string",
        required: true,
    },
    
    survey_id:{
        type: "string",
        required:true,
    }      
}

exports = {
    db_schema
}
PreviousStep 4: Build Your AppNextStep 6: Guidelines

Last updated 1 year ago

Last of all, your free trial SurveySparrow account expires within 14 days. So, if you need to extend the free trial, please reach out to us through our or email support@surveysparrow.dev and we will help you with it.

developer community