feat: Add interactive setup script

Added an interactive Node.js script (setup.js) to guide users through the initial environment setup. This script prompts for necessary database credentials and generates JWT secrets, then creates/updates the .env file.

A 'setup' script has been added to api.hyungi.net/package.json for easy execution.
This improves the first-time setup experience by streamlining the .env file creation process.
This commit is contained in:
Hyungi Ahn
2025-12-19 13:06:26 +09:00
parent 05843da1c4
commit 770fa91366
2 changed files with 83 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
"test:unit": "jest tests/unit",
"test:integration": "jest tests/integration",
"test:verbose": "jest --verbose",
"setup": "node ../setup.js",
"db:migrate": "knex migrate:latest --knexfile knexfile.js",
"db:migrate:make": "knex migrate:make --knexfile knexfile.js",
"db:rollback": "knex migrate:rollback --knexfile knexfile.js",