Skip to content

Commit

Permalink
added JWT_SECRET_KET & NODE_ENVIROMENT in .env file for All noAUth T…
Browse files Browse the repository at this point in the history
…emplates #233

added JWT_SECRET_KET & NODE_ENVIROMENT in .env file for All noAUth Templates
  • Loading branch information
sharafdin authored Mar 2, 2024
2 parents bb1b216 + ba1cc7e commit be14831
Show file tree
Hide file tree
Showing 9 changed files with 127 additions and 25 deletions.
17 changes: 14 additions & 3 deletions packages/yonode-templates/JS-MongoDB-Mongoose-NoAuth-Template/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,28 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database. This should include the protocol, username, password, and host as applicable.

DATABASE_URL=

# Specify the name of the database to which the application will connect.
# If not specified, the default database 'yonodeDB' will be used.
# Default: yonodeDB

DATABASE_NAME=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=
16 changes: 14 additions & 2 deletions packages/yonode-templates/JS-MongoDB-Prisma-NoAuth-Template/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database, This should include the protocol, username, password, host, port, and database name as applicable.
# Format: protocol://username:password@host:port/databaseName

DATABASE_URL=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=
17 changes: 14 additions & 3 deletions packages/yonode-templates/JS-MongoDB-TypeORM-NoAuth-Template/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,28 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database. This should include the protocol, username, password, and host as applicable.

DATABASE_URL=

# Specify the name of the database to which the application will connect.
# If not specified, the default database 'yonodeDB' will be used.
# Default: yonodeDB

DATABASE_NAME=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=
18 changes: 15 additions & 3 deletions packages/yonode-templates/JS-MySQL-Prisma-NoAuth-Template/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT='mysql://avnadmin:AVNS_JMf65DnxvV_yTnjBrdh@just-engomarjust-2c6b.a.aivencloud.com:22617/defaultdb?ssl-mode=REQUIRED'
SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database, This should include the protocol, username, password, host, port, and database name as applicable.
# Format: protocol://username:password@host:port/databaseName

DATABASE_URL=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=
17 changes: 14 additions & 3 deletions packages/yonode-templates/JS-MySQL-Sequelize-NoAuth-Template/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,28 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database. This should include the protocol, username, password, and host as applicable.

DATABASE_URL=

# Specify the name of the database to which the application will connect.
# If not specified, the default database 'yonodeDB' will be used.
# Default: yonodeDB

DATABASE_NAME=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=
17 changes: 14 additions & 3 deletions packages/yonode-templates/JS-MySQL-TypeORM-NoAuth-Template/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,28 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database. This should include the protocol, username, password, and host as applicable.

DATABASE_URL=

# Specify the name of the database to which the application will connect.
# If not specified, the default database 'yonodeDB' will be used.
# Default: yonodeDB

DATABASE_NAME=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database, This should include the protocol, username, password, host, port, and database name as applicable.
# Format: protocol://username:password@host:port/databaseName

DATABASE_URL=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,28 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database. This should include the protocol, username, password, and host as applicable.

DATABASE_URL=

# Specify the name of the database to which the application will connect.
# If not specified, the default database 'yonodeDB' will be used.
# Default: yonodeDB

DATABASE_NAME=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,28 @@
# Specify the port number on which the server will listen for incoming connections.
# If not specified, the default port 8000 will be used.
# Default: 8000

SERVER_PORT=

# Database Configuration
# ----------------------
# Provide the URL for connecting to the database. This should include the protocol, username, password, and host as applicable.

DATABASE_URL=

# Specify the name of the database to which the application will connect.
# If not specified, the default database 'yonodeDB' will be used.
# Default: yonodeDB

DATABASE_NAME=

# Authentication and Security Configuration
# -----------------------------------------
# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control.
# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access.
JWT_SECRET_KEY=

# Application Environment
# -----------------------
# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'.
# This setting can influence the application's behavior, enabling or disabling certain features based on the environment.
# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling.
# Default: development (if not specified)
NODE_ENVIRONMENT=

0 comments on commit be14831

Please sign in to comment.