diff options
author | ache <ache@ache.one> | 2019-01-30 23:51:25 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2019-01-30 23:51:25 +0100 |
commit | 158875b0c708a51a8f47c226879f9beeee58fc4f (patch) | |
tree | e3459892af2b85832591d4afca5de0daab652fd1 | |
parent | Set skel of the project (diff) |
New base
-rw-r--r-- | default/Capitale Européennes.json (renamed from capitale_EU.json) | 0 | ||||
-rw-r--r-- | default/Capitales.json (renamed from capitale.json) | 0 | ||||
-rw-r--r-- | default/Hiragana.json (renamed from hiragana_romaji.json) | 0 | ||||
-rw-r--r-- | default/Kanji.json (renamed from kanji.json) | 0 | ||||
-rw-r--r-- | default/Katakana.json (renamed from katakana_romaji.json) | 0 | ||||
-rw-r--r-- | default/Vocabulaire.json (renamed from vocab_jap.json) | 0 | ||||
-rw-r--r-- | src/app.mjs | 24 | ||||
-rw-r--r-- | src/views/index.html (renamed from index.html) | 0 | ||||
-rw-r--r-- | static/synhestesis.js (renamed from synhestesis.js) | 0 |
9 files changed, 24 insertions, 0 deletions
diff --git a/capitale_EU.json b/default/Capitale Européennes.json index 5f6cc4e..5f6cc4e 100644 --- a/capitale_EU.json +++ b/default/Capitale Européennes.json diff --git a/capitale.json b/default/Capitales.json index 0f3c78b..0f3c78b 100644 --- a/capitale.json +++ b/default/Capitales.json diff --git a/hiragana_romaji.json b/default/Hiragana.json index a17ce70..a17ce70 100644 --- a/hiragana_romaji.json +++ b/default/Hiragana.json diff --git a/kanji.json b/default/Kanji.json index a0a7eb5..a0a7eb5 100644 --- a/kanji.json +++ b/default/Kanji.json diff --git a/katakana_romaji.json b/default/Katakana.json index 48b687c..48b687c 100644 --- a/katakana_romaji.json +++ b/default/Katakana.json diff --git a/vocab_jap.json b/default/Vocabulaire.json index 85169a7..85169a7 100644 --- a/vocab_jap.json +++ b/default/Vocabulaire.json diff --git a/src/app.mjs b/src/app.mjs new file mode 100644 index 0000000..2903c58 --- /dev/null +++ b/src/app.mjs @@ -0,0 +1,24 @@ +'use-strict'; + +const express = require('express'); +const mustache = require('mustache-express'); +const path = require('path'); + +const app = express(); + +app.engine('html', mustache()); +app.set('view engine', 'html'); +app.set('views',path.join(__dirname, 'views')); + +app.use(express.static('default')); +app.use(express.static('static')); + +app.get('/', (req, res) => { + res.render('index.html', {yourdata: 'Hello from Mustache Template'}); +}); + +const server = app.listen(8100, () => { + const host = server.address().address; + const port = server.address().port; + console.log(`[${new Date()}] > App listening at http://%s:%s`, host, port); +}); diff --git a/index.html b/src/views/index.html index f64e470..f64e470 100644 --- a/index.html +++ b/src/views/index.html diff --git a/synhestesis.js b/static/synhestesis.js index 3696c5a..3696c5a 100644 --- a/synhestesis.js +++ b/static/synhestesis.js |