littlewin-wang / littlewin.server Goto Github PK
View Code? Open in Web Editor NEWA blog backend server based on koa + mongoose.
Home Page: https://api.littlewin.wang
License: MIT License
A blog backend server based on koa + mongoose.
Home Page: https://api.littlewin.wang
License: MIT License
分析IP Location
存入数据model
'/key/littlewin-server'里面的内容是什么啊。能把他贴出来吗?管家部分你可以替换啊,或者不替换也可以啊。谢谢,,不然跑步起来。
[nodemon] 1.12.1
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node bin/run
3babel presets path = /home/ziming/123/littlewin.server/node_modules/_runkoa@1.5.9@runkoa/node_modules
module.js:634
throw err;
^
SyntaxError: /home/ziming/key/littlewin-server.json: Unexpected token / in JSON at position 57
at JSON.parse ()
at Object.Module._extensions..json (module.js:631:27)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Module.require (module.js:556:17)
at require (internal/module.js:11:18)
at Object. (/home/ziming/123/littlewin.server/config/env.js:16:54)
at Module._compile (module.js:612:30)
at loader (/home/ziming/123/littlewin.server/node_modules/_babel-register@6.26.0@babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/ziming/123/littlewin.server/node_modules/_babel-register@6.26.0@babel-register/lib/node.js:154:7)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Module.require (module.js:556:17)
at require (internal/module.js:11:18)
[nodemon] app crashed - waiting for file changes before starting...
现有好像是单用户的,请求添加多用户的auth post机制
3babel presets path = /home/ziming/123/littlewin.server/node_modules/_runkoa@1.5.9@runkoa/node_modules
/home/ziming/123/littlewin.server/node_modules/_babel-core@6.26.0@babel-core/lib/transformation/file/index.js:590
throw err;
^
SyntaxError: /home/ziming/key/littlewin-server: Unexpected token, expected ; (2:8)
1 | {
2 | "AUTH": {
| ^
3 | "default": {
4 | "name": "", // 默认账号,自行设置
5 | "password": "" // 默认密码,自行设置
at Parser.pp$5.raise (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:4454:13)
at Parser.pp.unexpected (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:1761:8)
at Parser.pp.semicolon (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:1742:38)
at Parser.pp$1.parseExpressionStatement (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:2236:8)
at Parser.pp$1.parseStatement (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:1911:17)
at Parser.pp$1.parseBlockBody (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:2268:21)
at Parser.pp$1.parseBlock (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:2247:8)
at Parser.pp$1.parseStatement (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:1868:19)
at Parser.pp$1.parseBlockBody (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:2268:21)
at Parser.pp$1.parseTopLevel (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:1778:8)
at Parser.parse (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:1673:17)
at parse (/home/ziming/123/littlewin.server/node_modules/_babylon@6.18.0@babylon/lib/index.js:7305:37)
at File.parse (/home/ziming/123/littlewin.server/node_modules/_babel-core@6.26.0@babel-core/lib/transformation/file/index.js:517:15)
at File.parseCode (/home/ziming/123/littlewin.server/node_modules/_babel-core@6.26.0@babel-core/lib/transformation/file/index.js:602:20)
at /home/ziming/123/littlewin.server/node_modules/_babel-core@6.26.0@babel-core/lib/transformation/pipeline.js:49:12
at File.wrap (/home/ziming/123/littlewin.server/node_modules/_babel-core@6.26.0@babel-core/lib/transformation/file/index.js:564:16)
[nodemon] app crashed - waiting for file changes before starting...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.