smallqiang 3e4d52f4c3 修改配置表 | 5 gadi atpakaļ | |
---|---|---|
.. | ||
doc | 6 gadi atpakaļ | |
excel | 5 gadi atpakaļ | |
headlines_excel | 5 gadi atpakaļ | |
original_excel | 6 gadi atpakaļ | |
sheet | 5 gadi atpakaļ | |
.gitignore | 6 gadi atpakaļ | |
README.md | 6 gadi atpakaļ | |
build.bat | 6 gadi atpakaļ | |
config.js | 5 gadi atpakaļ | |
headlines_local.js | 5 gadi atpakaļ | |
index.html | 6 gadi atpakaļ | |
index.js | 6 gadi atpakaļ | |
local.js | 5 gadi atpakaļ | |
mongo.js | 5 gadi atpakaļ | |
package-lock.json | 6 gadi atpakaļ | |
package.json | 5 gadi atpakaļ |
根据Excel文件生成对应的 Js
到 /assets/scripts/data/
目录以供客户端调用,对应的 Js
文件名为 Excel
文件名去掉 Redis
前缀后的内容,如 allstar_buildingInfo.xlsx
-> buildingInfo.js
同时把生成的 Json
数据同步到 Redis
对应以文件名命名的 Key
,如 allstar_buildingInfo.xlsx
-> allstar:buildingInfo
$ npm install
$ npm run dev