Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    how do we install node packages? + how to save app credentials in the env section

    Cloud Backend (Cloud DB, API Builder)
    2
    6
    253
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Linda MacDonald
      Linda MacDonald last edited by

      Hey there guys 🙂 would be great if you guys could let me know how to install node packages. I have tried looking through a few AWS Lambda tutorials but it's not exactly the same?

      When I search I can find the packages I wantI see them on the list and click on them and save, but after that cannot see them in the list of downloaded packages.

      Also I tried storing app id + api key in the .env section and it wouldn't save. I hit the + sign and entered the app id hit the + sign a second time and entered my api key and saved, but it just wouldn't save. Might you guys have a tutorial tucked away somewhere? 🙂

      thanks in advance
      Linda

      1 Reply Last reply Reply Quote 0
      • Wassim
        Wassim last edited by

        Hi Linda,
        Can you tell us more about what package you tried to install and where ?
        You have two ways to do it :

        1 - Through the library manager by using either the Search or installing with the package name

        a74a02f0-172d-44af-bc3a-857a3034c063-image.png

        2 - Build a lambda locally charged with the desired libraries/resources and upload the working Zip file

        cf4da36b-f478-40f3-a2c0-3c258c5b66b4-image.png

        1 Reply Last reply Reply Quote 0
        • Linda MacDonald
          Linda MacDonald last edited by Linda MacDonald

          Hey there @Wassim I was trying out the algolia search package, I just used the search bar and found it but do not see a way to enter my own credentials for it? seems like the env section is already preconfigured?

          1 Reply Last reply Reply Quote 0
          • Wassim
            Wassim last edited by

            @Linda-MacDonald said in how do we install node packages? + how to save app credentials in the env section:

            Hey there @Wassim I was trying out the algolia search package, I just used the search bar and found it but do not see a way to enter my own credentials for it? seems like the env section is already preconfigured?

            You can add environment variables on your function here :
            3b785985-c1a4-441b-b3f8-a1dbfb7b9d4b-image.png

            Then add the desired variables :

            7a92e96e-b2fc-435c-bc02-92551e281aed-image.png

            Once saved, you can use them in your code :

            16cb5289-4602-4f4a-9c68-e79cdc6332f3-image.png

            05b4e7a6-aaf9-43d3-aad7-675c70c3dc0f-image.png

            1 Reply Last reply Reply Quote 0
            • Linda MacDonald
              Linda MacDonald last edited by

              AHH silly me!!!!!!!!!!I cannot enter just APPID and APIKEY again, I need to call it something other than that right? like algoliasearchid...I can just call it whatever? just not appid and apikey? thanks a mil @Wassim 🙂

              1 Reply Last reply Reply Quote 0
              • Wassim
                Wassim last edited by

                Hey, yes you can call it whatever you want as they are just variable names.
                You just have to use the same name when using process.env.yourVariable. Your code will use the computed value of it so the name has no impact. (unless a library specifically use inside its code process.env.whateverVariable)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post