-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from Mintplex-Labs/121-improved-onboarding
improve onboarding to auto-onboard
- Loading branch information
Showing
9 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
SERVER_PORT=3001 | ||
|
||
# temp Root account login | ||
SYS_EMAIL=[email protected] | ||
SYS_PASSWORD=password | ||
|
||
JWT_SECRET="YoUr_RaNd0M_sTr1nG" | ||
# STORAGE_DIR= | ||
DATABASE_CONNECTION_STRING="postgresql://user:password@host:port/database" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,8 +48,8 @@ async function systemInit() { | |
const completeSetup = (await User.count({ role: "admin" })) > 0; | ||
if (completeSetup) return; | ||
|
||
process.env.SYS_EMAIL = process.env.SYS_EMAIL ?? "[email protected]"; | ||
process.env.SYS_PASSWORD = process.env.SYS_PASSWORD ?? "password"; | ||
process.env.SYS_EMAIL = "[email protected]"; | ||
process.env.SYS_PASSWORD = "password"; | ||
|
||
const existingRootUser = await User.get({ | ||
email: process.env.SYS_EMAIL, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,6 @@ SERVER_PORT=3001 | |
# STORAGE_DIR="./backend/storage" | ||
|
||
JWT_SECRET="your-random-string-here" | ||
SYS_EMAIL="[email protected]" | ||
SYS_PASSWORD="hunter2" | ||
|
||
INNGEST_EVENT_KEY="background_workers" | ||
INNGEST_SIGNING_KEY="random-string-goes-here" | ||
INNGEST_LANDING_PAGE="true" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,6 @@ Run this command first to get a dockerized Postgres container running: | |
`docker run -d -p 3001:3001 \ | ||
-e SERVER_PORT="3001" \ | ||
-e JWT_SECRET="your-random-string-here" \ | ||
-e SYS_EMAIL="[email protected]" \ | ||
-e SYS_PASSWORD="password" \ | ||
-e INNGEST_EVENT_KEY="background_workers" \ | ||
-e INNGEST_SIGNING_KEY="random-string-goes-here" \ | ||
-e INNGEST_LANDING_PAGE="true" \ | ||
|
@@ -36,8 +34,6 @@ mintplexlabs/vectoradmin` | |
- Edit `.env` file and update the variables. **please** update all of the following: | ||
```shell | ||
JWT_SECRET="some-random-string" | ||
SYS_EMAIL="[email protected]" | ||
SYS_PASSWORD="password" | ||
DATABASE_CONNECTION_STRING="postgresql://vectoradmin:[email protected]:5433/vdbms" # Valid PG Connection string. | ||
INNGEST_SIGNING_KEY="some-random-string" | ||
``` | ||
|
@@ -46,7 +42,7 @@ INNGEST_SIGNING_KEY="some-random-string" | |
|
||
## How to use the user interface and login for the first time. | ||
- To access the full application, visit `http://localhost:3001` in your browser. | ||
- You first login will require you to use the `SYS_EMAIL` and `SYS_PASSWORD` set via ENV during build or run. After onboarding this login will be permanently disabled. | ||
- You will automatically be redirected into onboarding to create your primary admin account, organization, and vector database connection. | ||
|
||
# Connecting to a Vector Database | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters