From 835c7a0e4035fe72c076f3b895b05cee3750a5b9 Mon Sep 17 00:00:00 2001 From: Abdinasir Mursal <115280340+abdinasir-Tman@users.noreply.github.com> Date: Wed, 6 Mar 2024 04:42:10 -0800 Subject: [PATCH] feat: Create .env --- .env | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 00000000..23679d0c --- /dev/null +++ b/.env @@ -0,0 +1,30 @@ +# Server Configuration +# -------------------- +# 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=