mirror of
https://github.com/hackku21/loc-chain-backend.git
synced 2026-03-02 03:40:09 +00:00
Import Extollo framework
This commit is contained in:
4
lib/app/configs/app.config.d.ts
vendored
Normal file
4
lib/app/configs/app.config.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
declare const _default: {
|
||||
name: any;
|
||||
};
|
||||
export default _default;
|
||||
6
lib/app/configs/app.config.js
Normal file
6
lib/app/configs/app.config.js
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const lib_1 = require("@extollo/lib");
|
||||
exports.default = {
|
||||
name: lib_1.env('APP_NAME', 'Extollo'),
|
||||
};
|
||||
13
lib/app/configs/database.config.d.ts
vendored
Normal file
13
lib/app/configs/database.config.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
declare const _default: {
|
||||
connections: {
|
||||
default: {
|
||||
user: any;
|
||||
password: any;
|
||||
host: any;
|
||||
port: any;
|
||||
database: any;
|
||||
dialect: any;
|
||||
};
|
||||
};
|
||||
};
|
||||
export default _default;
|
||||
15
lib/app/configs/database.config.js
Normal file
15
lib/app/configs/database.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const lib_1 = require("@extollo/lib");
|
||||
exports.default = {
|
||||
connections: {
|
||||
default: {
|
||||
user: lib_1.env('DATABASE_USERNAME', 'extollo'),
|
||||
password: lib_1.env('DATABASE_PASSWORD'),
|
||||
host: lib_1.env('DATABASE_HOST', 'localhost'),
|
||||
port: lib_1.env('DATABASE_PORT', 5432),
|
||||
database: lib_1.env('DATABASE_NAME', 'extollo_1'),
|
||||
dialect: lib_1.env('DATABASE_DIALECT', 'postgres'),
|
||||
},
|
||||
},
|
||||
};
|
||||
4
lib/app/configs/lang/common.config.d.ts
vendored
Normal file
4
lib/app/configs/lang/common.config.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
declare const _default: {
|
||||
app_name: any;
|
||||
};
|
||||
export default _default;
|
||||
6
lib/app/configs/lang/common.config.js
Normal file
6
lib/app/configs/lang/common.config.js
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const lib_1 = require("@extollo/lib");
|
||||
exports.default = {
|
||||
app_name: lib_1.env('APP_NAME', 'Extollo'),
|
||||
};
|
||||
5
lib/app/configs/lang/en_US.config.d.ts
vendored
Normal file
5
lib/app/configs/lang/en_US.config.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
declare const _default: {
|
||||
welcome_to_extollo: string;
|
||||
viewed_page_num_times: string;
|
||||
};
|
||||
export default _default;
|
||||
6
lib/app/configs/lang/en_US.config.js
Normal file
6
lib/app/configs/lang/en_US.config.js
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {
|
||||
welcome_to_extollo: 'Welcome to Extollo!',
|
||||
viewed_page_num_times: 'You have viewed this page :num: times.',
|
||||
};
|
||||
21
lib/app/configs/server.config.d.ts
vendored
Normal file
21
lib/app/configs/server.config.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { ORMSession } from "@extollo/orm";
|
||||
import { LocalFilesystem, LocalFilesystemConfig } from "@extollo/util";
|
||||
declare const _default: {
|
||||
debug: any;
|
||||
session: {
|
||||
driver: typeof ORMSession;
|
||||
};
|
||||
filesystems: {
|
||||
default: {
|
||||
isDefault: boolean;
|
||||
driver: typeof LocalFilesystem;
|
||||
config: LocalFilesystemConfig;
|
||||
};
|
||||
};
|
||||
middleware: {
|
||||
global: {
|
||||
pre: string[];
|
||||
};
|
||||
};
|
||||
};
|
||||
export default _default;
|
||||
40
lib/app/configs/server.config.js
Normal file
40
lib/app/configs/server.config.js
Normal file
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const lib_1 = require("@extollo/lib");
|
||||
const orm_1 = require("@extollo/orm");
|
||||
const util_1 = require("@extollo/util");
|
||||
exports.default = {
|
||||
debug: lib_1.env('DEBUG_MODE', false),
|
||||
session: {
|
||||
/* The implementation of @extollo/lib.Session that serves as the session backend. */
|
||||
driver: orm_1.ORMSession,
|
||||
},
|
||||
/*
|
||||
* Here, you can define various filesystem drivers that can be used in
|
||||
* your application to store/retrieve files.
|
||||
*
|
||||
* The key in the object is the 'name' of the filesystem as it will be
|
||||
* fetched in code. For example, if you have a `fubar: { ... }` item,
|
||||
* then you can retrieve that filesystem using the Files service like
|
||||
* so:
|
||||
*
|
||||
* files.getFilesystem('fubar') // => Filesystem { ... }
|
||||
*/
|
||||
filesystems: {
|
||||
default: {
|
||||
/* If true, this will serve as the default filesystem for modules in your application. */
|
||||
isDefault: true,
|
||||
/* The implementation of @extollo/util.Filesystem that serves as the backend. */
|
||||
driver: util_1.LocalFilesystem,
|
||||
/* The config required by the filesystem driver. */
|
||||
config: {
|
||||
baseDir: lib_1.basePath('..', 'uploads').toLocal,
|
||||
},
|
||||
}
|
||||
},
|
||||
middleware: {
|
||||
global: {
|
||||
pre: ['LogRequest'],
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user