create-seamless 0.0.6 → 0.0.8
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.
- package/index.js +10 -10
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -227,8 +227,6 @@ Review each subproject for its specific license before deploying to production.
|
|
|
227
227
|
`;
|
|
228
228
|
|
|
229
229
|
const GENERATED_DOCKER_COMPOSE = `
|
|
230
|
-
version: "3.9"
|
|
231
|
-
|
|
232
230
|
services:
|
|
233
231
|
db:
|
|
234
232
|
image: postgres:16
|
|
@@ -250,14 +248,16 @@ services:
|
|
|
250
248
|
|
|
251
249
|
auth:
|
|
252
250
|
container_name: seamless-auth
|
|
253
|
-
build:
|
|
251
|
+
build:
|
|
252
|
+
context: ./auth
|
|
253
|
+
dockerfile: Dockerfile.dev
|
|
254
254
|
ports:
|
|
255
255
|
- "${authPort}:${authPort}"
|
|
256
256
|
env_file:
|
|
257
257
|
- ./auth/.env
|
|
258
258
|
environment:
|
|
259
259
|
DB_HOST: db
|
|
260
|
-
ISSUER
|
|
260
|
+
ISSUER: http://auth:${authPort}
|
|
261
261
|
volumes:
|
|
262
262
|
- ./auth:/app
|
|
263
263
|
- /app/node_modules
|
|
@@ -273,7 +273,8 @@ services:
|
|
|
273
273
|
env_file:
|
|
274
274
|
- ./api/.env
|
|
275
275
|
environment:
|
|
276
|
-
AUTH_SERVER_URL
|
|
276
|
+
AUTH_SERVER_URL: http://auth:${authPort}
|
|
277
|
+
DB_HOST: db
|
|
277
278
|
volumes:
|
|
278
279
|
- ./api:/app
|
|
279
280
|
- /app/node_modules
|
|
@@ -405,7 +406,6 @@ async function downloadRepo(repo, dest) {
|
|
|
405
406
|
DB_USER: "myuser",
|
|
406
407
|
DB_PASSWORD: "mypassword",
|
|
407
408
|
|
|
408
|
-
DB_NAME: "seamless",
|
|
409
409
|
SQL_LOGGING: "false",
|
|
410
410
|
});
|
|
411
411
|
}
|
|
@@ -417,8 +417,8 @@ async function downloadRepo(repo, dest) {
|
|
|
417
417
|
await downloadRepo(REPOS.web, dir);
|
|
418
418
|
|
|
419
419
|
writeEnv(dir, {
|
|
420
|
-
VITE_AUTH_SERVER_URL: `http://localhost:${apiPort}
|
|
421
|
-
VITE_API_URL: `http://localhost:${apiPort}
|
|
420
|
+
VITE_AUTH_SERVER_URL: `http://localhost:${apiPort}/`,
|
|
421
|
+
VITE_API_URL: `http://localhost:${apiPort}/`,
|
|
422
422
|
PORT: webPort,
|
|
423
423
|
});
|
|
424
424
|
}
|
|
@@ -441,8 +441,8 @@ async function downloadRepo(repo, dest) {
|
|
|
441
441
|
fs.writeFileSync(
|
|
442
442
|
path.join(pgDir, "init.sql"),
|
|
443
443
|
`
|
|
444
|
-
|
|
445
|
-
|
|
444
|
+
CREATE DATABASE seamless_auth;
|
|
445
|
+
CREATE DATABASE seamless_api;
|
|
446
446
|
`,
|
|
447
447
|
);
|
|
448
448
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-seamless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "The starter script for Seamless Auth",
|
|
5
5
|
"homepage": "https://github.com/fells-code/create-seamless#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"@types/adm-zip": "^0.5.7",
|
|
34
34
|
"@types/node": "^24.10.1"
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|