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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user