Skip to content

Commit

Permalink
Misc: Add .env template file, remove redundant dependency, adjust yar…
Browse files Browse the repository at this point in the history
…n.lock as needed
  • Loading branch information
jrock-3 committed Feb 29, 2024
1 parent 56c8581 commit df2942f
Show file tree
Hide file tree
Showing 3 changed files with 1,130 additions and 1,152 deletions.
53 changes: 53 additions & 0 deletions env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Switches between local dev env vars and deployment env vars
NODE_ENV = "development"

# Development Environment Variables
######################################
DEV_SERVER_PORT = 3001

DEV_CLIENT_HOSTNAME = "https://localhost"
DEV_CLIENT_PORT = 3000

# Database credentials
DEV_DB_HOSTNAME = ""
DEV_DB_NAME = ""
DEV_DB_USERNAME = ""
DEV_DB_PASSWORD = ""
DEV_DB_URI = "" # typically only for mongodb

# [Optional] Nodemailer
DEV_EMAIL_USERNAME = ""
DEV_EMAIL_PASSWORD = ""
DEV_EMAIL_FIRSTNAME = ""
DEV_EMAIL_LASTNAME = ""

# [Optional] S3 File Upload
DEV_S3_REGION = ""
DEV_S3_ACCESS_KEY_ID = ""
DEV_S3_SECRET_ACCESS_KEY = ""
######################################

# Production Environment Variables
######################################
PROD_SERVER_PORT = 8080

PROD_CLIENT_HOSTNAME = ""

# Database Credentials
PROD_DB_HOSTNAME = ""
PROD_DB_NAME = ""
PROD_DB_USERNAME = ""
PROD_DB_PASSWORD = ""
PROD_DB_URI = "" # typically only for mongodb

# [Optional] Nodemailer
PROD_EMAIL_USERNAME = ""
PROD_EMAIL_PASSWORD = ""
PROD_EMAIL_FIRSTNAME = ""
PROD_EMAIL_LASTNAME = ""

# [Optional] S3 File Upload
PROD_S3_REGION = ""
PROD_S3_ACCESS_KEY_ID = ""
PROD_S3_SECRET_ACCESS_KEY = ""
######################################
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"eslint": "^8.1.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^4.0.0",
"express": "^4.17.1",
"nodemon": "^2.0.14",
"prettier": "^2.4.1"
Expand Down
Loading

0 comments on commit df2942f

Please sign in to comment.