commit 4fdd41a05a8f27bb8de517186148bb5b1f316024 Author: Gahow Wang Date: Fri May 15 11:12:14 2026 +0800 chore: initialize project with package.json, .env.example and .gitignore Set up the Node.js project skeleton, define environment variable template, and exclude secrets, certs, and nginx runtime from version control. diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..0bf2f7b --- /dev/null +++ b/.env.example @@ -0,0 +1,11 @@ +# Copy this file to .env and replace the placeholder values. + +# Gitea token used to list repos and branches. +GITEA_TOKEN=replace-with-your-gitea-token + +# IPADS API key used by the default quota command. +IPADS_API_KEY=replace-with-your-ipads-api-key + +# Optional overrides. +# KANBAN_GITEA_BASE_URL=http://gahow-pc.ipads-lab.se.sjtu.edu.cn:3300 +# KANBAN_AUTH_TOKEN=replace-with-a-long-random-login-token diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a02b267 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Environment secrets +.env + +# SSL certificates and private keys +deploy/certs/ + +# Nginx runtime data +.nginx/ + +# Node.js +node_modules/ diff --git a/package.json b/package.json new file mode 100644 index 0000000..8068005 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "local-kanban", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "node src/server.js", + "start": "node src/server.js", + "test": "node --test" + }, + "engines": { + "node": ">=20" + } +}