mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 22:18:00 +08:00
49 lines
780 B
Plaintext
Executable File
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 | | |
|
|
|