mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
49 lines
980 B
Plaintext
Executable File
49 lines
980 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`
|
|
The unique Supabase URL which is supplied when you create a new project in [your project Dashboard](https://app.supabase.io).
|
|
|
|
###### supabaseKey `:string`
|
|
The unique Supabase Key which is supplied when you create a new project in [your project Dashboard](https://app.supabase.io).
|
|
|
|
###### OPTIONS `:object?`
|
|
@todo
|
|
|
|
|
|
| Parameter | Data Type | Description |
|
|
| ----------- | --------- | ----------- |
|
|
| @tbc | | |
|
|
|