yalishizhude / api-mock Goto Github PK
View Code? Open in Web Editor NEWHTTP API mock server
HTTP API mock server
firstly, i run npm install , then run npm start . at that time, an error ouccored.
here the stack trace is.
[2016-04-29 12:45:15.367] [ERROR] console - [Error: failed to connect to [127.0.0.1:27017]]
Error: failed to connect to [127.0.0.1:27017]
at null. (E:\github\api-document\node_modules\mongodb\lib\mongodb\connection\server.js:556:25)
at emitThree (events.js:97:13)
at emit (events.js:175:7)
at null. (E:\github\api-document\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:156:15)
at emitTwo (events.js:87:13)
at emit (events.js:172:7)
at Socket. (E:\github\api-document\node_modules\mongodb\lib\mongodb\connection\connection.js:534:10)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at emitErrorNT (net.js:1250:8)
what should i do?
不知道你有没有打算提供一个script 可以将应用打包成静态文件呢?
就像 npm run build
然后打出一个html ,js ,css 等,可以通过静态服务器去发布呢
now i've edited my data, and i want to save to mongoDB so that i can fetch it next time . what should i do ?
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.