Commit 0fd2c7d1 authored by 曾振佳's avatar 曾振佳

Initial commit

parents
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
/client/
\ No newline at end of file
{
"extends": "loopback"
}
\ No newline at end of file
*.csv
*.dat
*.iml
*.log
*.out
*.pid
*.seed
*.sublime-*
*.swo
*.swp
*.tgz
*.xml
.DS_Store
.idea
.project
.strong-pm
coverage
node_modules
npm-debug.log
{}
\ No newline at end of file
'use strict';
module.exports = function(Aaaaaaa) {
};
{
"name": "Aaaaaaa",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "aaaaaaa"
},
"properties": {
"formId": {
"type": "String",
"required": true,
"length": 1,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 1,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Bbbbb) {
};
{
"name": "Bbbbb",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "bbbbb"
},
"properties": {
"id": {
"type": "String",
"required": true,
"length": 3,
"precision": null,
"scale": null,
"mysql": {
"columnName": "id",
"dataType": "varchar",
"dataLength": 3,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 1,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 1,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Wpwpdatatable14) {
};
{
"name": "WpWpdatatable14",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "wp_wpdatatable_14"
},
"properties": {
"wdtId": {
"type": "Number",
"required": true,
"length": null,
"precision": 10,
"scale": 0,
"mysql": {
"columnName": "wdt_ID",
"dataType": "int",
"dataLength": null,
"dataPrecision": 10,
"dataScale": 0,
"nullable": "N"
}
},
"wdtcolumn": {
"type": "String",
"required": false,
"length": 255,
"precision": null,
"scale": null,
"mysql": {
"columnName": "wdtcolumn",
"dataType": "varchar",
"dataLength": 255,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"wdtcolumn1": {
"type": "String",
"required": false,
"length": 2000,
"precision": null,
"scale": null,
"mysql": {
"columnName": "wdtcolumn1",
"dataType": "varchar",
"dataLength": 2000,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjdmxsjc9) {
};
{
"name": "ZzjDmxsjc9",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_dmxsjc_9"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 1,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 1,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjgczlgkjcxglqk2) {
};
{
"name": "ZzjGczlgkjcxglqk2",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_gczlgkjcxglqk_2"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 2,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 2,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjjcjr11) {
};
{
"name": "ZzjJcjr11",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_jcjr_11"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 1,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 1,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjjczbgz3) {
};
{
"name": "ZzjJczbgz3",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_jczbgz_3"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 1,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 1,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjjsxgjc10) {
};
{
"name": "ZzjJsxgjc10",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_jsxgjc_10"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 1,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 1,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjpsgdjssdyjqkjc5) {
};
{
"name": "ZzjPsgdjssdyjqkjc5",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_psgdjssdyjqkjc_5"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 2,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 2,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjpsssjsqkjc4) {
};
{
"name": "ZzjPsssjsqkjc4",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_psssjsqkjc_4"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 2,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 2,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjszjc7) {
};
{
"name": "ZzjSzjc7",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_szjc_7"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 2,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 2,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjyclssszjglqkjc6) {
};
{
"name": "ZzjYclssszjglqkjc6",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_yclssszjglqkjc_6"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 2,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 2,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Zzjzbqyccxmfxwtzgtz8) {
};
{
"name": "ZzjZbqyccxmfxwtzgtz8",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "zzj_zbqyccxmfxwtzgtz_8"
},
"properties": {
"id": {
"type": "Number",
"required": true,
"length": null,
"precision": 20,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 20,
"dataScale": 0,
"nullable": "N"
}
},
"formId": {
"type": "String",
"required": true,
"length": 2,
"precision": null,
"scale": null,
"mysql": {
"columnName": "form_id",
"dataType": "varchar",
"dataLength": 2,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"area": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "area",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"community": {
"type": "String",
"required": false,
"length": 4294967295,
"precision": null,
"scale": null,
"mysql": {
"columnName": "community",
"dataType": "longtext",
"dataLength": 4294967295,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
product: '1.0.0'
info:
name: zbqyloopbackapi
title: "ZbqyLoopbackApi"
version: "1.0.0"
apis:
'zbqyloopbackapi_100':
$ref: ZbqyLoopbackApi.yaml
visibility:
view:
type: public
subscribe:
type: authenticated
plans:
default:
title: Default Plan
description: Default Plan
approval: false
rate-limit:
value: 100/hour
hard-limit: false
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "ZbqyLoopbackApi",
"version": "1.0.0",
"main": "server/server.js",
"engines": {
"node": ">=6"
},
"scripts": {
"lint": "eslint .",
"start": "node .",
"posttest": "npm run lint"
},
"dependencies": {
"compression": "^1.0.3",
"cors": "^2.5.2",
"helmet": "^3.10.0",
"loopback": "^3.22.0",
"loopback-boot": "^2.6.5",
"loopback-component-explorer": "^6.5.0",
"loopback-connector-mysql": "^5.4.2",
"serve-favicon": "^2.0.1",
"strong-error-handler": "^3.0.0"
},
"devDependencies": {
"eslint": "^3.17.1",
"eslint-config-loopback": "^8.0.0"
},
"repository": {
"type": "",
"url": ""
},
"license": "UNLICENSED",
"description": "ZbqyLoopbackApi"
}
'use strict';
module.exports = function(server) {
// Install a `/` route that returns server status
var router = server.loopback.Router();
router.get('/', server.loopback.status());
server.use(router);
};
{
"loopback-component-explorer": {
"mountPath": "/explorer",
"generateOperationScopedModels": true
}
}
{
"restApiRoot": "/api",
"host": "0.0.0.0",
"port": 3888,
"remoting": {
"context": false,
"rest": {
"handleErrors": false,
"normalizeHttpPath": false,
"xml": false
},
"json": {
"strict": false,
"limit": "100kb"
},
"urlencoded": {
"extended": true,
"limit": "100kb"
},
"cors": false
}
}
{
"【本地】正本清源数据库": {
"host": "127.0.0.1",
"port": 14310,
"url": "mysql://wordpress:wordpress@127.0.0.1:14310/wordpress",
"database": "wordpress",
"password": "wordpress",
"name": "【本地】正本清源数据库",
"connector": "mysql",
"user": "wordpress",
"all": true
}
}
{
"final:after": {
"strong-error-handler": {
"params": {
"debug": true,
"log": true
}
}
}
}
{
"initial:before": {
"loopback#favicon": {}
},
"initial": {
"compression": {},
"cors": {
"params": {
"origin": true,
"credentials": true,
"maxAge": 86400
}
},
"helmet#xssFilter": {},
"helmet#frameguard": {
"params": {
"action": "deny"
}
},
"helmet#hsts": {
"params": {
"maxAge": 0,
"includeSubdomains": true
}
},
"helmet#hidePoweredBy": {},
"helmet#ieNoOpen": {},
"helmet#noSniff": {},
"helmet#noCache": {
"enabled": false
}
},
"session": {},
"auth": {},
"parse": {},
"routes": {
"loopback#rest": {
"paths": [
"${restApiRoot}"
]
}
},
"files": {},
"final": {
"loopback#urlNotFound": {}
},
"final:after": {
"strong-error-handler": {}
}
}
{
"_meta": {
"sources": [
"loopback/common/models",
"loopback/server/models",
"../common/models",
"./models"
],
"mixins": [
"loopback/common/mixins",
"loopback/server/mixins",
"../common/mixins",
"./mixins"
]
},
"ZzjJcjr11": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjJsxgjc10": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjGczlgkjcxglqk2": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjJczbgz3": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjPsgdjssdyjqkjc5": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjPsssjsqkjc4": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjSzjc7": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjZbqyccxmfxwtzgtz8": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjDmxsjc9": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"ZzjYclssszjglqkjc6": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"WpWpdatatable14": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"Aaaaaaa": {
"dataSource": "【本地】正本清源数据库",
"public": true
},
"Bbbbb": {
"dataSource": "【本地】正本清源数据库",
"public": true
}
}
'use strict';
var loopback = require('loopback');
var boot = require('loopback-boot');
var app = module.exports = loopback();
app.start = function() {
// start the web server
return app.listen(function() {
app.emit('started');
var baseUrl = app.get('url').replace(/\/$/, '');
console.log('Web server listening at: %s', baseUrl);
if (app.get('loopback-component-explorer')) {
var explorerPath = app.get('loopback-component-explorer').mountPath;
console.log('Browse your REST API at %s%s', baseUrl, explorerPath);
}
});
};
// Bootstrap the application, configure models, datasources and middleware.
// Sub-apps like REST API are mounted via boot scripts.
boot(app, __dirname, function(err) {
if (err) throw err;
// start the server if `$ node server.js`
if (require.main === module)
app.start();
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment