@storecraft/database-postgres 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +17 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -27,8 +27,6 @@ import { migrateToLatest } from '@storecraft/database-sql-base/migrate.js'
27
27
  const app = new App(
28
28
  {
29
29
  auth_admins_emails: ['admin@sc.com'],
30
- auth_secret_access_token: 'auth_secret_access_token',
31
- auth_secret_refresh_token: 'auth_secret_refresh_token'
32
30
  }
33
31
  )
34
32
  .withPlatform(new NodePlatform())
@@ -56,6 +54,23 @@ const server = http.createServer(app.handler).listen(
56
54
 
57
55
  ```
58
56
 
57
+ Storecraft will search the following `env` variables
58
+
59
+ ```bash
60
+ POSTGRES_USER='admin'
61
+ POSTGRES_PASSWORD='admin'
62
+ POSTGRES_PORT=6432
63
+ POSTGRES_HOST='localhost'
64
+ ```
65
+
66
+ So, you can instantiate with empty config
67
+ ```ts
68
+ .withDatabase(
69
+ new Postgres()
70
+ )
71
+ ```
72
+
73
+
59
74
  ## Testing Locally
60
75
 
61
76
  1. First start a `postgres` server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storecraft/database-postgres",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Official Postgres Database driver for storecraft",
5
5
  "license": "MIT",
6
6
  "author": "Tomer Shalev (https://github.com/store-craft)",