You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2><aid="JavaScript_SDK_for_Contentstack_1"></a>JavaScript SDK for Contentstack</h2>
34
34
<p>Contentstack is a headless CMS with an API-first approach. It is a CMS that developers can use to build powerful cross-platform applications in their favorite languages. Build your application frontend, and Contentstack will take care of the rest. <ahref="https://www.contentstack.com/">Read More</a>.</p>
35
35
<p>Contentstack provides JavaScript SDK to build application on top of JavaScript. Given below is the detailed guide and helpful resources to get started with our JavaScript SDK.</p>
36
-
<p>The JavaScript SDK can also be used to create Node.js and React native applications.</p>
36
+
<p>The JavaScript SDK can also be used to create Node.js, React Native and NativeScript applications.</p>
37
37
<h3><aid="Prerequisite_9"></a>Prerequisite</h3>
38
38
<p>You need Node.js version 4.4.7 or later installed to use the Contentstack JavaScript SDK.</p>
39
39
<h3><aid="Setup_and_Installation_13"></a>Setup and Installation</h3>
<p>NativeScript uses the Javascript SDK to create apps. To use the JavaScript SDK, download it from <ahref="https://www.contentstack.com/docs/platforms/javascript-browser/javascript_sdk_latest">here</a>, OR install ist via npm:</p>
69
+
<preclass="prettyprint"><code>npm -i contentstack
70
+
</code></pre>
71
+
<p>To import the SDK in your project, use the following command:</p>
72
+
<preclass="prettyprint" class="prettyprint"><code>import contentstack from `contentstack/native-script`
73
+
</code></pre>
74
+
<p>To initialize the SDK, you will need to specify the API Key, Access Token, and Environment Name of your stack.</p>
<h3><aid="Key_Concepts_for_using_Contentstack_54"></a>Key Concepts for using Contentstack</h3>
68
78
<h4><aid="Stack_56"></a>Stack</h4>
69
79
<p>A stack is like a container that holds the content of your app. Learn more about <ahref="https://www.contentstack.com/docs/guide/stack">Stacks</a>.</p>
0 commit comments