Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tbeseda/enhance-db-session-test
https://github.com/tbeseda/enhance-db-session-test
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tbeseda/enhance-db-session-test
- Owner: tbeseda
- Created: 2024-04-03T17:10:18.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-03T17:29:43.000Z (8 months ago)
- Last Synced: 2024-04-15T02:57:45.831Z (7 months ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```sh
npx @enhance/cli@latest new ./enhance-db-session-test
```delete a bunch of stuff
use [the Arc db sessions guide](https://arc.codes/docs/en/guides/frontend/sessions)
add sessions to the db
```
@tables
sessions
_idx *
ttl ttl
```run
```sh
begin create
# env name => staging
```don't deploy yet
run
```
begin env create -e staging -n ARC_SESSION_TABLE_NAME -v sessionsbegin env create -e staging -n ARC_APP_SECRET -v $(openssl rand -base64 32)
begin env list
enhance-db-session-test (app ID: SB4C95JM)
└── staging (env ID: LJQ41WVPJ): https://leaf-0ye.begin.app
├── ARC_APP_SECRET=k****
└── ARC_SESSION_TABLE_NAME=s****
``````
begin deploy
```