|
|
лет назад: 3 | |
|---|---|---|
| .. | ||
| .vscode | лет назад: 3 | |
| public | лет назад: 3 | |
| src | лет назад: 3 | |
| test | лет назад: 3 | |
| .dockerignore | лет назад: 3 | |
| .editorconfig | лет назад: 3 | |
| .eslintrc.json | лет назад: 3 | |
| .gitattributes | лет назад: 3 | |
| .gitignore | лет назад: 3 | |
| .prettierrc.js | лет назад: 3 | |
| Dockerfile | лет назад: 3 | |
| LICENSE | лет назад: 3 | |
| README.md | лет назад: 3 | |
| bootstrap.js | лет назад: 3 | |
| f.yml | лет назад: 3 | |
| package.json | лет назад: 3 | |
| tsconfig.json | лет назад: 3 | |
| uni.md | лет назад: 3 | |
src/config/config.local.ts数据库为 mysql(>=5.7版本),node 版本(>=12.x),首次启动会自动初始化并导入数据
config.orm = {
type: 'mysql',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',
database: 'cool-admin',
synchronize: true,
logging: true,
};
$ npm i
$ npm run dev
$ open http://localhost:8001/
注: npm i如果安装失败可以尝试使用cnpm,或者切换您的镜像源
rm -rf node_modules rm package-lock.json npm cache clear --force npm install
npm run build
$ npm start
$ npm stop
npm run lint 来做代码风格检查。npm test 来执行单元测试。npm install
npm run start
lsof -i:8001
netstat -tunlp | grep 8001
curl 'http://127.0.0.1:8001'
SERVER 需要单独安装 axios
cd /home/cool/server
npm i axios
// npm install qiniu npm install node-xlsx --save
前端
// yarn add spark-md5
// yarn add sha1-file-web
yarn add qiniu-js