aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.js13
-rw-r--r--README.md5
-rw-r--r--model.js1
3 files changed, 18 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..fbf4784
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,13 @@
+module.exports = {
+ "env": {
+ "commonjs": true,
+ "es2021": true,
+ "node": true
+ },
+ "extends": "eslint:recommended",
+ "parserOptions": {
+ "ecmaVersion": "latest"
+ },
+ "rules": {
+ }
+}
diff --git a/README.md b/README.md
index c118311..a343c7b 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,7 @@
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/fd49b1a14156479492bf414fdde868bd)](https://www.codacy.com/gh/terminaldweller/web/dashboard?utm_source=github.com&utm_medium=referral&utm_content=terminaldweller/web&utm_campaign=Badge_Grade)
-# web
+# blog
+It's the source code for my blog.<br/>
+You find the live instance [here](https://blog.terminaldweller.com)<br/>
+You also can use the RSS feed to get notified of when there are no posts.<br/>
diff --git a/model.js b/model.js
index dde3913..207b62b 100644
--- a/model.js
+++ b/model.js
@@ -38,6 +38,7 @@ function dbInit() {
});
}
+// only used for testing, otherwise unused
function populateDB(model) {
let filePaths = fs.readdirSync(path.join(__dirname, "mds"));
filePaths.forEach((fileName) => {