feat: add demo for mark and user org model
This commit is contained in:
parent
65ee66d6b4
commit
ed4379b589
@ -1,3 +1,13 @@
|
|||||||
{
|
{
|
||||||
port: 3000,
|
port: 3000,
|
||||||
|
postgres: {
|
||||||
|
username: 'postgres',
|
||||||
|
host: 'localhost',
|
||||||
|
database: 'postgres',
|
||||||
|
password: 'postgres',
|
||||||
|
port: 5432,
|
||||||
|
},
|
||||||
|
tableName: {
|
||||||
|
table: 'name',
|
||||||
|
}
|
||||||
}
|
}
|
15
package.json
15
package.json
@ -31,7 +31,10 @@
|
|||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@kevisual/router": "^0.0.7",
|
"@kevisual/code-center-module": "0.0.11-alpha.1",
|
||||||
|
"@kevisual/mark": "0.0.6",
|
||||||
|
"@kevisual/router": "0.0.8-alpha.3",
|
||||||
|
"cookie": "^1.0.2",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"formidable": "^3.5.2",
|
"formidable": "^3.5.2",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
@ -39,7 +42,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@kevisual/types": "^0.0.6",
|
"@kevisual/types": "^0.0.6",
|
||||||
"@kevisual/use-config": "^1.0.8",
|
"@kevisual/use-config": "^1.0.9",
|
||||||
"@rollup/plugin-alias": "^5.1.1",
|
"@rollup/plugin-alias": "^5.1.1",
|
||||||
"@rollup/plugin-commonjs": "^28.0.2",
|
"@rollup/plugin-commonjs": "^28.0.2",
|
||||||
"@rollup/plugin-json": "^6.1.0",
|
"@rollup/plugin-json": "^6.1.0",
|
||||||
@ -49,19 +52,19 @@
|
|||||||
"@types/crypto-js": "^4.2.2",
|
"@types/crypto-js": "^4.2.2",
|
||||||
"@types/formidable": "^3.4.5",
|
"@types/formidable": "^3.4.5",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/node": "^22.13.5",
|
"@types/node": "^22.13.8",
|
||||||
"concurrently": "^9.1.2",
|
"concurrently": "^9.1.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"nodemon": "^3.1.9",
|
"nodemon": "^3.1.9",
|
||||||
"pm2": "^5.4.3",
|
"pm2": "^5.4.3",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"rollup": "^4.34.8",
|
"rollup": "^4.34.9",
|
||||||
"rollup-plugin-copy": "^3.5.0",
|
"rollup-plugin-copy": "^3.5.0",
|
||||||
"rollup-plugin-dts": "^6.1.1",
|
"rollup-plugin-dts": "^6.1.1",
|
||||||
"rollup-plugin-esbuild": "^6.2.0",
|
"rollup-plugin-esbuild": "^6.2.1",
|
||||||
"tape": "^5.9.0",
|
"tape": "^5.9.0",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.8.2"
|
||||||
},
|
},
|
||||||
"pnpm": {}
|
"pnpm": {}
|
||||||
}
|
}
|
937
pnpm-lock.yaml
generated
937
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
import { App } from '@kevisual/router';
|
import { App } from '@kevisual/router';
|
||||||
import { useContextKey, useContext } from '@kevisual/use-config/context';
|
import { useContextKey } from '@kevisual/use-config/context';
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
return new App();
|
return new App();
|
||||||
|
9
src/modules/mark.ts
Normal file
9
src/modules/mark.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Mark, markModelInit } from '@kevisual/mark';
|
||||||
|
|
||||||
|
export { Mark, markModelInit };
|
||||||
|
|
||||||
|
export const init = () => {
|
||||||
|
markModelInit({
|
||||||
|
tableName: '',
|
||||||
|
});
|
||||||
|
};
|
1
src/modules/sequelize.ts
Normal file
1
src/modules/sequelize.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { sequelize } from '@kevisual/code-center-module';
|
9
src/modules/user.ts
Normal file
9
src/modules/user.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { sequelize, User, UserInit, Org, OrgInit } from '@kevisual/code-center-module';
|
||||||
|
|
||||||
|
export { sequelize, User, UserInit, Org, OrgInit };
|
||||||
|
|
||||||
|
export const init = () => {
|
||||||
|
UserInit();
|
||||||
|
OrgInit();
|
||||||
|
};
|
||||||
|
init();
|
Loading…
x
Reference in New Issue
Block a user