-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocs_installation.html
40 lines (30 loc) · 1.36 KB
/
docs_installation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!-- Docs - Installation -->
<div class="section">
<h2><a href="/docs/">Docs</a> : Installation</h2>
<h3>Create an admin account</h3>
<p>First, you need to <a href="https://v1.userbase.com/#create-admin">create a free Userbase admin account</a>. No credit card required.</p>
<h3>Install the SDK</h3>
<p>Then, you need to include the Userbase SDK in your web app.</p>
<p>You can either include the SDK with a <code class="language-markup"><script></code> tag:</p>
<pre>
<code class="language-markup"><!--
<script type="text/javascript" src="https://sdk.userbase.com/2/userbase.js"></script>
--></code>
</pre>
<p>Or, you can use the npm package:</p>
<pre>
<code class="language-bash">
npm install userbase-js
</code>
</pre>
<p>You can check the browser compatibility list <a href="/docs/installation/compatibility/">here</a>.</p>
<h3>Set the App ID</h3>
<p>In your admin account, you will find a Starter app. Get its App ID, and initialize the Userbase SDK with it.</p>
<pre>
<code class="language-javascript"><!--
userbase.init({ appId: 'YOUR_APP_ID' })
--></code>
</pre>
<p>And you're all set. You can now proceed to the <a href="/docs/sdk/">SDK</a> section, or jump straight to the <a href="/docs/quickstart/">Quickstart</a> to see how to build a very basic web app in a single HTML file.</p>
</div>
<hr>