From 9251a29c3891ee6171820cf21afd24350d6f9afa Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 20 Jun 2022 23:59:22 +0430 Subject: [PATCH] Small changes. --- README.md | 1 + api/config.js | 2 -- api/server.js | 2 +- media/explanation | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 98e6363..ffaf867 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ The objective is to have a self-hosted place to keep useful links in one place, 3. head to the main folder and run `docker compose up`. ### Manual Setup (Linux/MacOS) +(Unstable for now.) 1. Make sure your MongoDB database and collection is up and running. diff --git a/api/config.js b/api/config.js index 1ac18cd..1038261 100644 --- a/api/config.js +++ b/api/config.js @@ -1,5 +1,3 @@ -const fs = require("fs"); - module.exports.port = process.env.PORT || 5000; module.exports.URI = process.env.MONGODB_URI || 'mongodb://localhost:27017'; module.exports.database = process.env.DB_NAME || 'sample_db'; diff --git a/api/server.js b/api/server.js index 2e587b6..b74c279 100644 --- a/api/server.js +++ b/api/server.js @@ -12,7 +12,7 @@ const client = new MongoClient(URI); const db = client.db(database); const list = db.collection(collection); -// Create the storage directories if they do ot exist +// Create the storage directories if they do not exist if (!fs.existsSync(screenshotDirectory)) { fs.mkdirSync(screenshotDirectory, { recursive: true }); } diff --git a/media/explanation b/media/explanation index 5761896..99bce83 100644 --- a/media/explanation +++ b/media/explanation @@ -1 +1 @@ -This is the archive storage. \ No newline at end of file +This is the archive storage (For docker). \ No newline at end of file