Skip to content

Commit

Permalink
chore(examples): align example APP_NAME values
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkdev98 committed Apr 27, 2023
1 parent 9496b11 commit f789598
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions docs/features/postgres-and-s3.md
Expand Up @@ -61,11 +61,12 @@ POSTGRES_PASSWORD=postgres
```

Let's break it down a bit. `APP_NAME` is used in various places, but most
importantly it is the default name for your database, file bucket and logs. Then
we have some PostgreSQL connection configuration, kept as simple as possible.
For the S3 connection to Minio we don't need to configure anything. Compas
provides a function to use the default connection settings in development. For
production you should use one of the recommended ways as per the
importantly, it is the default name for your database, file bucket and logs.
Then we have some PostgreSQL connection configuration, kept as simple as
possible. For the S3 connection to Minio we don't need to configure anything.
Compas provides a function to use the default connection settings in
development. For production you should use one of the recommended ways as per
the
[AWS SDK docs](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html).

And lastly we need to install `@compas/store`:
Expand Down
2 changes: 1 addition & 1 deletion examples/crud-simple-todo/.env
@@ -1,5 +1,5 @@
NODE_ENV=development
APP_NAME=exampletodo
APP_NAME=crud-simple-todo

POSTGRES_HOST=127.0.0.1:5432
POSTGRES_USER=postgres
Expand Down
2 changes: 1 addition & 1 deletion examples/crud/.env
@@ -1,5 +1,5 @@
NODE_ENV=development
APP_NAME=examplecrud
APP_NAME=crud

POSTGRES_HOST=127.0.0.1:5432
POSTGRES_USER=postgres
Expand Down
2 changes: 1 addition & 1 deletion examples/default/.env
@@ -1,5 +1,5 @@
NODE_ENV=development
APP_NAME=defaultexp
APP_NAME=default

POSTGRES_HOST=127.0.0.1:5432
POSTGRES_USER=postgres
Expand Down
2 changes: 1 addition & 1 deletion examples/with-auth/.env
@@ -1,5 +1,5 @@
NODE_ENV=development
APP_NAME=withauth
APP_NAME=with-auth

POSTGRES_HOST=127.0.0.1:5432
POSTGRES_USER=postgres
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/visualise/sql.js
Expand Up @@ -15,7 +15,7 @@ export function formatGraphOfSql(codeGen, structure) {
const entities = codeGen.getQueryEnabledObjects({ structure });

let src = `
digraph ${environment.APP_NAME} {
digraph "${environment.APP_NAME}" {
label = "label";
fontsize = 14;
rankdir = "TB";
Expand Down

0 comments on commit f789598

Please sign in to comment.