Skip to content

Commit a5f1f43

Browse files
committed
add sections for initializing the se2 client
1 parent f72e546 commit a5f1f43

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

website/docs/quickstart.md

+50-10
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,66 @@ We'll only be shown this access key once, so we'll need to store it somewhere sa
6767

6868
## Using the SE2 SDK
6969

70-
We'll need to supply our environment variables (our environment access key and the name of our environment) to SE2. Within the directory that contains our app, we'll:
70+
SE2 provides client libraries for Go and Node.js. Start by installing the client:
7171

72-
- Create a file named `.env`
73-
- Within our new `.env` file, we'll add our environment variables:
72+
<Tabs groupId="tenant-creation">
7473

75-
- `SUBORBITAL_TOKEN` is our environment's access key
76-
- `SUBORBITAL_ENV` is the name we gave our environment
74+
<TabItem value="tenant-go" label="Using Go">
7775

78-
- Next we'll need to export those variables by running:
76+
```go
77+
Go version goes here
78+
```
7979

80-
```bash
81-
set -a
80+
</TabItem>
81+
82+
<TabItem value = "tenant-js" label = "Using JS">
83+
84+
```js
85+
JS version goes here
8286
```
8387

84-
- And then:
88+
</TabItem>
89+
90+
</Tabs>
91+
92+
Next, initialize the client with your environment access key:
93+
94+
<Tabs groupId="tenant-creation">
95+
96+
<TabItem value="tenant-go" label="Using Go">
97+
98+
```go
99+
Go version goes here
100+
```
101+
102+
</TabItem>
103+
104+
<TabItem value = "tenant-js" label = "Using JS">
105+
106+
```js
107+
JS version goes here
108+
```
109+
110+
</TabItem>
111+
112+
<TabItem value = "tenant-curl" label = "Using cURL">
85113

86114
```bash
87-
source .env
115+
POST api/v1/tenant HTTP/2
116+
Host: api.suborbital.network
117+
Content-Type: application/json
118+
Authorization: Bearer OUR_ACCESS_KEY
119+
120+
{
121+
"name": "org.example.tenvantx",
122+
"description": "hello world tenant"
123+
}
88124
```
89125

126+
</TabItem>
127+
128+
</Tabs>
129+
90130
## Create a tenant (user)
91131

92132
Suborbital lets an application's users create their own secure, sandboxed plugins, carefully isolated from the core of the system and one another. For this reason, we will create a new tenant, which is a user account with its own plugins inside Suborbital. Our application will then connect the tenant with one of its own internally-maintained users.

0 commit comments

Comments
 (0)