Registry / devops / egg-born-template-front-backend-mysql

egg-born-template-front-backend-mysql

JSON →
library1.0.31jsnpmunverified

A fullstack boilerplate template for Egg Born framework with MySQL database integration. Version 1.0.31 provides a scaffold combining frontend and backend applications, leveraging MySQL as the database backend. Designed for rapid project initialization with Egg Born ecosystem. Release cadence is low; primarily a scaffold template with minimal updates.

npm install egg-born-template-front-backend-mysql
INSTALL
IMPORT
SIG · EGG-BORN-TEMPLATE-
E
egg-born-template-front-backend-mysql
devopsjavascriptv1.0.31
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

createApp
import { createApp } from 'egg-born-template-front-backend-mysql'
const createApp = require('egg-born-template-front-backend-mysql')
Template is a scaffold; typically not imported directly but used via CLI.
default
import tpl from 'egg-born-template-front-backend-mysql'
const tpl = require('egg-born-template-front-backend-mysql').default
Default export may not exist; prefer CLI usage.

Shows how to scaffold a new project using this template with the Egg Born CLI.

// This template is used via CLI tool, not directly imported. // Example: npm init egg-born-app my-app --template front-backend-mysql // Then configure MySQL connection in config files.
Debug
Known issues
gotchaThis is a template; it does not include runtime logic. Ensure you have the Egg Born CLI installed.
fix
Install egg-born globally: npm i -g egg-born
affects: >=1.0.0
gotchaRequires MySQL database setup. Ensure MySQL is running and credentials are configured.
fix
Create database and update config files with connection details.
affects: >=1.0.0
deprecatedTemplate uses older Node.js conventions; may not support ESM without modifications.
fix
Use CommonJS style or convert to ESM manually.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'egg-born-template-front-backend-mysql'
Trying to import the template directly instead of using CLI.
fix
Use the Egg Born CLI to scaffold a new project: egg-born init my-app --template front-backend-mysql
Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost'
MySQL credentials are incorrect or database not configured.
fix
Check config/config.default.js for MySQL settings and ensure the database exists.
Upgrade
Version history
1.0.31latest on npm
Audit
Dependencies
egg-born-backendrequiredCore backend framework for Egg Born applications.
egg-born-frontrequiredFrontend framework for Egg Born applications.
mysql2requiredMySQL database driver for Node.js.
Agent activity
2 hits · last 30 days
node
2
Resources
egg-born-template-front-backend-mysql — npm install egg-born-template-front-backend-mysql · libregistry