1 Star 0 Fork 0

longfei347 / NiceFish-BackEnd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

NiceFish-BackEnd

这是NiceFISH的服务端代码,我把它分成一个独立的项目来写,这样看起来更加清晰一些。 这个RESTful服务端是基于NodeJS+Express+MongoDB实现的。

使用方法

  • 请自己好安装Mongodb并启动,例如:mongod.exe --dbpath c:\data\db
  • [可选]启动MongoDB可视化工具,强烈推荐MongoBooster,请自行搜索安装
  • 安装好Chrome插件resteasy,测试后台接口的时候要用到
  • 安装Node相关的模块:npm install
  • 启动express服务端 npm start ,express默认起在3000端口
  • 如果你希望在开发的时候能自动监控修改的文件并重启服务,请安装nodemon这个NodeJS插件,安装方法请看这里https://github.com/remy/nodemon ,安装完成之后直接在NiceFish-BackEnd根目录下运行nodemon命令
  • 打开Chrome访问http://localhost:3000/
  • 在Chrome中启动resteasy插件,开始测试后台接口

目前已经做了一个基本雏形,可以测试的restful api接口请看router/user.js这个文件中的定义。

The MIT License (MIT) Copyright (c) 2016 大漠穷秋 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

这是NiceFish的服务端代码,基于Express+MangoDB构建。 展开 收起
NodeJS
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/longfei/NiceFish-BackEnd.git
git@gitee.com:longfei/NiceFish-BackEnd.git
longfei
NiceFish-BackEnd
NiceFish-BackEnd
master

搜索帮助