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
}

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 developer community or email support@surveysparrow.dev and we will help you with it.

Last updated