diff --git a/startup.js b/startup.js
index d287c9c..eaecf4e 100644
--- a/startup.js
+++ b/startup.js
@@ -1,9 +1,5 @@
console.log('Executing startup jobs...');
-if (process.env.APP_DEBUG) {
- process.env.DEBUG = '*/*';
-}
-
const fs = require('fs');
const {Base64} = require('js-base64');
const crc32 = require('crc-32');
@@ -20,6 +16,11 @@ require('dotenv').config({
path: dotpath
});
+// load debug
+if (process.env.APP_DEBUG) {
+ process.env.DEBUG = '*/*';
+}
+
// load key
if (!process.env.APP_KEY)
throw new Error('APP_KEY is not set.')
@@ -28,7 +29,7 @@ if (!process.env.APP_KEY)
// ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
process.env.APP_KEY = Buffer.from(process.env.APP_KEY, 'base64').toString('ascii');
-console.log('Using a key with CRC32: ' + crc32.bstr(process.env.APP_KEY).toString(16));
+console.log('Using a key with CRC32: ' + crc32.str(process.env.APP_KEY).toString(16));
async function startup() {
let t1 = hrt();
diff --git a/view/project.pug b/view/project.pug
index d8130ac..f374680 100644
--- a/view/project.pug
+++ b/view/project.pug
@@ -23,5 +23,6 @@ block content
h2 Planned projects
ul
- li blek! Analytics
+ li
+ a(href='/project/blek_anal') blek! Analytics
li blek! Launcher
\ No newline at end of file
diff --git a/view/projects/blek_anal.pug b/view/projects/blek_anal.pug
new file mode 100644
index 0000000..1dbd9ca
--- /dev/null
+++ b/view/projects/blek_anal.pug
@@ -0,0 +1,14 @@
+extends ../layout/project.pug
+block root
+ - var title = 'blek! Analytics'
+
+block append content
+ h2 blek! Analytics
+ p.
+ For now, the project exists just as an idea of creating a self-hosted alternative of Google Analytics.
+ p.
+ I like google analytics but it is created by a capitalist company and all the user data is sent to Google
+ which is not very good, because it can be used (and it probably is used) for empowering Global Survelliance.
+ p.
+ With analytics being self-hosted, all the used data is available only to hoster and therefore cannot be used for mass-spying on people.
+ Of course, the hoster can access the data, but its only one person/company, not a global multinational conglomerate.
\ No newline at end of file