Skip to content

Commit cb15105

Browse files
committed
Initiate app with pure clerk-js
1 parent 275dec4 commit cb15105

File tree

10 files changed

+1509
-0
lines changed

10 files changed

+1509
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_CLERK_PUBLISHABLE_KEY=abc
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
# local env files
27+
.env
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Force organization selection with `clerk-js`
2+
3+
This example shows how to build an application that does not allow users to operate under a _Personal Workspace_. To require organization membership for all users:
4+
1. Navigate to **Organization Settings** page in the Clerk Dashboard
5+
2. Enable the organizations feature if not already active
6+
3. Turn on **Force organization selection**
7+
8+
## Set Up
9+
10+
Copy the `.env.example` file and update it with your Clerk application keys:
11+
12+
```
13+
cp .env.example .env
14+
```
15+
16+
## Getting Started
17+
18+
Install dependencies and run the development server:
19+
20+
```bash
21+
pnpm i
22+
pnpm dev
23+
```
24+
25+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>Force Organization Selection</title>
9+
</head>
10+
11+
<body>
12+
<div id="app"></div>
13+
<script type="module" src="./src/main.js"></script>
14+
</body>
15+
16+
</html>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "clerk-javascript",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"devDependencies": {
12+
"vite": "^6.2.0"
13+
}
14+
}

0 commit comments

Comments
 (0)