diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..da97b95 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +PORT=3000 +HREF="https://your.domain.com/" diff --git a/.gitignore b/.gitignore index 4d8b7ee..747fca8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ data.db-journal .vscode *.db package-lock.json -yarn.lock \ No newline at end of file +yarn.lock +*.*~ \ No newline at end of file diff --git a/app.js b/app.js index e58dd9f..cc2a9e1 100644 --- a/app.js +++ b/app.js @@ -1,3 +1,4 @@ +require('dotenv').config() const express = require('express'); const path = require('path'); const session = require('express-session'); diff --git a/package.json b/package.json index 6c51e14..d62e36c 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "connect-flash": "^0.1.1", "cookie-parser": "~1.4.4", "debug": "~2.6.9", + "dotenv": "^16.0.1", "ejs": "^3.1.5", "express": "~4.16.1", "express-rate-limit": "^5.2.3",