Files
supabase/web/docs/library/getting-started.mdx

49 lines
780 B
Plaintext
Executable File

---
id: getting-started
title: Getting Started
---
## Installing
```bash
npm install --save @supabase/supabase-js
# OR
yarn install @supabase/supabase-js
```
## Initializing
```js
import { createClient } from '@supabase/supabase-js'
// Create a single supabase client for interacting with your database
const supabase = createClient("https://xyzcompany.supabase.io", "1a2b-3c4d-5e6f-7g8h");
```
## Reference
### `createClient()`
```js
createClient('supabaseURL', 'supabaseKey', OPTIONS)
```
###### supabaseURL `:string`
Your unique Supabase URL.
###### supabaseKey `:string`
Your unique Supabase Key.
###### OPTIONS `:object?`
@todo
| Parameter | Data Type | Description |
| ----------- | --------- | ----------- |
| @tbc | | |