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.
This commit is contained in:
2026-05-15 11:12:14 +08:00
commit 4fdd41a05a
3 changed files with 36 additions and 0 deletions

11
.env.example Normal file
View File

@@ -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

11
.gitignore vendored Normal file
View File

@@ -0,0 +1,11 @@
# Environment secrets
.env
# SSL certificates and private keys
deploy/certs/
# Nginx runtime data
.nginx/
# Node.js
node_modules/

14
package.json Normal file
View File

@@ -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"
}
}