import
This commit is contained in:
1
api/.gitignore
vendored
Normal file
1
api/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
node_modules
|
||||
13
api/index.js
Normal file
13
api/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
app.get('/ping', (req,res) => {
|
||||
res.send("pong!");
|
||||
})
|
||||
|
||||
app.get('/hello', (req,res) => {
|
||||
res.send("hello!");
|
||||
})
|
||||
|
||||
app.listen(port, () => {console.log(`listening on ${port}`)})
|
||||
13
api/package.json
Normal file
13
api/package.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"scripts": {
|
||||
"dev": "nodemon index.js",
|
||||
"serve": "node index.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^3.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.19.2",
|
||||
"sqlite3": "^5.1.7"
|
||||
}
|
||||
}
|
||||
1736
api/pnpm-lock.yaml
generated
Normal file
1736
api/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
3
www/.gitignore
vendored
Normal file
3
www/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
node_modules/
|
||||
|
||||
/_site/
|
||||
4
www/_data/site.json
Normal file
4
www/_data/site.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "",
|
||||
"desc": ""
|
||||
}
|
||||
20
www/_includes/base.liquid
Normal file
20
www/_includes/base.liquid
Normal file
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ site.name }}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta name="description" content="{{ desc | default: site.desc }}">
|
||||
<link rel="stylesheet" href="/pico.min.css">
|
||||
</head>
|
||||
<body class=".grid" style="min-width:100dvh;min-width:100vh;">
|
||||
<header>
|
||||
<h1>{{ site.name }}</h1>
|
||||
</header>
|
||||
<main>
|
||||
{{ content }}
|
||||
</main>
|
||||
<footer>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
27
www/eleventy.config.cjs
Normal file
27
www/eleventy.config.cjs
Normal file
@@ -0,0 +1,27 @@
|
||||
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
||||
|
||||
module.exports = function(eleventyConfig){
|
||||
|
||||
eleventyConfig.setServerPassthroughCopyBehavior("passthrough");
|
||||
eleventyConfig.addPassthroughCopy({
|
||||
"./node_modules/@picocss/pico/css/pico.min.*": "./",
|
||||
}, {debug: true})
|
||||
|
||||
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
||||
|
||||
eleventyConfig.addFilter(
|
||||
"debug",
|
||||
(content) =>
|
||||
`<pre>
|
||||
${require("node:util").inspect(content)}
|
||||
</pre>`
|
||||
);
|
||||
|
||||
eleventyConfig.addDataExtension("yml, yaml",
|
||||
contents => require('js-yaml').load(contents)
|
||||
)
|
||||
|
||||
if(process.env.NODE_ENV==="production"){
|
||||
eleventyConfig.addGlobalData('date', 'git Last Modified');
|
||||
}
|
||||
}
|
||||
3
www/index.md
Normal file
3
www/index.md
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
layout: base.liquid
|
||||
---
|
||||
11
www/package.json
Normal file
11
www/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"scripts": {
|
||||
"dev": "eleventy --serve",
|
||||
"build": "eleventy"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "^2.0.1",
|
||||
"@picocss/pico": "^1.5.10",
|
||||
"js-yaml": "^4.1.0"
|
||||
}
|
||||
}
|
||||
1410
www/pnpm-lock.yaml
generated
Normal file
1410
www/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user