{"_id":"wind-mvc","_rev":"24-f6465c9341946f03ddc0c6cb1b251f94","name":"wind-mvc","time":{"modified":"2022-06-29T02:04:09.645Z","created":"2014-03-13T12:02:45.597Z","0.0.1":"2014-03-13T12:03:05.500Z","0.0.2":"2014-03-13T12:29:24.232Z","0.0.3":"2015-04-15T09:01:49.657Z","0.0.4":"2015-04-15T09:18:31.975Z","0.0.5":"2015-04-15T09:28:13.390Z","0.0.6":"2015-04-15T09:31:55.418Z"},"maintainers":[{"name":"wind-hao","email":"707156268@qq.com"}],"dist-tags":{"latest":"0.0.6"},"description":"it's a simple framework of mvc","readme":"# wind-mvc\nthis is a simple mvc framework.\n\n## Installation\n```\n$ npm install wind-mvc\n$ node app.js\n```\nthen, you can access like: (similarly struts rules) <br />\n- http://127.0.0.1:8080/register\n- http://127.0.0.1:8080/server\n- http://127.0.0.1:8080/fileUpload\n- http://127.0.0.1:8080/ajax\n- http://127.0.0.1:8080/ajax!getJson\n\n## main configuration file\nlib/config.js\n```js\n/**\n* gloabl configuration\n**/\nmodule.exports = {\n\t/**\n\t* server port\n\t**/\n\tport: 8080,\n\t\n\tuploadDir :'./uploadfile/'\n};\n```\n\nlib/url-config.js\n```js\n/**\n*  url map the module of the action\n**/\n\nmodule.exports = {\n\t'/ajax': {\n\t\tpath: './action/ajax.js',\n\t\tresults: {\n\t\t\t'success': './static/start/index.html'\n\t\t}\n\t},\n\t'/register': {\n\t\tpath: './action/register.js',\n\t\tresults: {\n\t\t\t'success': './static/form/form.html'\n\t\t}\n\t},\n\t'/server': {\n\t\tpath: './action/serverSent.js',\n\t\tresults: {\n\t\t\t'success': './static/server/server-sent.html'\n\t\t}\n\t},\n\t'/fileUpload': {\n\t\tpath: './action/fileUpload.js',\n\t\tresults: {\n\t\t\tsuccess: './static/form/fileUploadWithProgress.html'\n\t\t}\n\t}\n};\n```","versions":{"0.0.4":{"name":"wind-mvc","version":"0.0.4","description":"it's a simple framework of mvc","main":"app.js","directories":{"doc":"doc","test":"test"},"dependencies":{"formidable":"1.0.14"},"devDependencies":{},"scripts":{"test":"app.js"},"repository":{"type":"git","url":"https://registry.npmjs.org/wind-mvc"},"keywords":["mvc"],"author":{"name":"wind-hao"},"license":"BSD","_id":"wind-mvc@0.0.4","_shasum":"b4dafb5b034edb2c28ffd885133ba64fc26e4c2a","_from":"hjf-mvc","_resolved":"file:hjf-mvc","_npmVersion":"2.5.1","_nodeVersion":"0.12.1","_npmUser":{"name":"wind-hao","email":"707156268@qq.com"},"dist":{"shasum":"b4dafb5b034edb2c28ffd885133ba64fc26e4c2a","tarball":"https://registry.npmjs.org/wind-mvc/-/wind-mvc-0.0.4.tgz","integrity":"sha512-Kee0x8d0F15HNfgbcrTOUV7sSzZju03IA2o5oxZKQgHzAiGlPycNT1kU1PRcKhAsdP0LVRdRLhQEhK3K762+Qg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZx9pRx91oQg5V1DHeRxegkE8iTANuRgaXgpxMr5MFTAIgWtkWf3h5XArpM4YYe01O4G30asqN3b/wXEcsO/LhHoQ="}]},"maintainers":[{"name":"wind-hao","email":"707156268@qq.com"}]},"0.0.5":{"name":"wind-mvc","version":"0.0.5","description":"it's a simple framework of mvc","main":"app.js","directories":{"doc":"doc","test":"test"},"dependencies":{"formidable":"1.0.14"},"devDependencies":{},"scripts":{"test":"app.js"},"repository":{"type":"git","url":"https://registry.npmjs.org/wind-mvc"},"keywords":["mvc"],"author":{"name":"wind-hao"},"license":"BSD","_id":"wind-mvc@0.0.5","_shasum":"04321b5392f7e09565457930cd1fb8233cbdb269","_from":"hjf-mvc","_resolved":"file:hjf-mvc","_npmVersion":"2.5.1","_nodeVersion":"0.12.1","_npmUser":{"name":"wind-hao","email":"707156268@qq.com"},"dist":{"shasum":"04321b5392f7e09565457930cd1fb8233cbdb269","tarball":"https://registry.npmjs.org/wind-mvc/-/wind-mvc-0.0.5.tgz","integrity":"sha512-fNza6ryi5X8IYF3YE1p5pU5kWIbR4Jlk91BvAaj7pjI5CCyYh+8V5vKm02o6mKbY2ZhrcDoEi4t+t4aQ6ZGtKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPx3LlFzS5V2/oL8DSwLsEIBBHUP2LtL69XAE95CpwlAiBnQLwBgn0mftmqtKPabqIEVBg+d+Db9WQWMU/kvI/juQ=="}]},"maintainers":[{"name":"wind-hao","email":"707156268@qq.com"}]},"0.0.6":{"name":"wind-mvc","version":"0.0.6","description":"it's a simple framework of mvc","main":"app.js","directories":{"doc":"doc","test":"test"},"dependencies":{"formidable":"1.0.14"},"devDependencies":{},"scripts":{"test":"app.js"},"repository":{"type":"git","url":"https://registry.npmjs.org/wind-mvc"},"keywords":["mvc"],"author":{"name":"wind-hao"},"license":"BSD","_id":"wind-mvc@0.0.6","_shasum":"fdb46c702d2d47927d4f1259e1672346f1666eb8","_from":"hjf-mvc","_resolved":"file:hjf-mvc","_npmVersion":"2.5.1","_nodeVersion":"0.12.1","_npmUser":{"name":"wind-hao","email":"707156268@qq.com"},"dist":{"shasum":"fdb46c702d2d47927d4f1259e1672346f1666eb8","tarball":"https://registry.npmjs.org/wind-mvc/-/wind-mvc-0.0.6.tgz","integrity":"sha512-xoZXlBltwTICJwX66oL7syhDnqe49N1ypUdcYngsXm2pJ16raedxhq9Mt+w5+tkOn5JFG60vzbBu+ulRCGijPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDU0bg6DwOjLsnqPBclJ620IytLtz521Gt1teDPhC/qvwIgQPIrP8++onQw2zZ0Rp8zCygeEuvRVuL4VtxE5gurXX0="}]},"maintainers":[{"name":"wind-hao","email":"707156268@qq.com"}]}},"keywords":["mvc"],"repository":{"type":"git","url":"https://registry.npmjs.org/wind-mvc"},"author":{"name":"wind-hao"},"license":"BSD","readmeFilename":"Readme.md"}