From e2c4c7bf98e30aa23c84bcd5a2d00166a5ebd68b Mon Sep 17 00:00:00 2001 From: tgpethan Date: Thu, 26 Mar 2020 16:17:36 +0000 Subject: [PATCH 1/2] Fix mistakes in readme Some mistakes made it through the review from the previous pr updating the readme from a few months ago. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b22f8e0..687dddb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

What is Revolution?

-

Revolution is A modular Web framework, written in node.js , and built with the purpose of being a solid framework that apps can build upon to get up and running quickly and easily. Revolution is designed to make it easy to create the application you need, with no waste. +

Revolution is a modular web framework, written in node.js and built with the purpose of being a solid framework that apps can build upon to get up and running quickly and easily. Revolution is designed to make it easy to create the application you need, with no waste.

What is Revolution for?

@@ -10,7 +10,7 @@

How does Revolution work?

Revolution uses a set of modules to handle various functions, there are two modules included with the repo and builds, these being consoleHelper and example_request_handler. consoleHelper is a required module and as such the framework will not start without it, however example_request_handler can be removed without consequence and is there purely to help with module development.

How do modules work?

-

Modules are loaded in at runtime and are completely separate from each other. Each module has a prefix, for example the request handlers have the prefix “handle_console”. These prefixes determine the function of the modules and help the server to function.

+

Modules are loaded in at runtime and are completely separate from each other. Each module has a prefix, for example the request handlers have the prefix “handle_requests” and the consoleHelper has the prefix of "handle_console". These prefixes help the server to determine the function of each module.

How to use Revolution.

From source

git clone https://github.com/tgpethan/Revolution.git
-- 2.47.0 From f0e3120b838cd420efd39a19fb94efb6523d0af1 Mon Sep 17 00:00:00 2001 From: tgpethan Date: Thu, 26 Mar 2020 16:25:25 +0000 Subject: [PATCH 2/2] Sort out consoleHelper's Config formatting The consoleHelper has some pretty ugly formatting on the config, this fixes that. --- modules/consoleHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/consoleHelper.js b/modules/consoleHelper.js index 451f9ba..34c1f31 100644 --- a/modules/consoleHelper.js +++ b/modules/consoleHelper.js @@ -15,7 +15,7 @@ if (!fs.existsSync(__dirname + BASE_PATH)) { } // Creates the consoleHelper config file if (!fs.existsSync(__dirname + BASE_PATH + "/config.json")) { - fs.writeFileSync(__dirname + BASE_PATH + "/config.json", JSON.stringify({"24hour":true})); + fs.writeFileSync(__dirname + BASE_PATH + "/config.json", `{\n\t"24hour":true\n}`); console.log(`[consoleHelper] Made consoleHelper config file`); } -- 2.47.0