create-butterfly-app-v2 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-butterfly-app-v2",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Full-stack boilerplate: Node.js + React + Tailwind + MySQL. Choose from Hotel, Parking, or Student Management projects with auth + full CRUD.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-butterfly-app-v2": "cli.js"
|
|
@@ -19,11 +19,16 @@ app.use("/api", require("./routes/api"));
|
|
|
19
19
|
async function start() {
|
|
20
20
|
try {
|
|
21
21
|
await db.query("SELECT 1");
|
|
22
|
-
console.log("MySQL connected");
|
|
22
|
+
console.log(" ✓ MySQL connected");
|
|
23
23
|
await require("./db/init")();
|
|
24
|
-
app.listen(PORT, () => console.log(`Backend on http://localhost:${PORT}`));
|
|
24
|
+
app.listen(PORT, () => console.log(` ✓ Backend running on http://localhost:${PORT}\n`));
|
|
25
25
|
} catch (err) {
|
|
26
|
-
console.error("Startup failed:"
|
|
26
|
+
console.error("\n ✗ Startup failed:");
|
|
27
|
+
console.error(" " + (err.code || "Error") + ": " + err.message);
|
|
28
|
+
console.error("\n Possible fixes:");
|
|
29
|
+
console.error(" 1. Make sure XAMPP is running (Apache & MySQL started)");
|
|
30
|
+
console.error(" 2. Create the database in phpMyAdmin if it doesn't exist");
|
|
31
|
+
console.error(" 3. Check .env file for correct DB credentials\n");
|
|
27
32
|
process.exit(1);
|
|
28
33
|
}
|
|
29
34
|
}
|