Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

carlguo2016/api-template-using-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

api-template-using-node

This is a simple Api template for MVC using node. It is used for writing standard api.

安装

项目地址:(git clone)

git clone https://github.com/carlguo2016/api-template-using-node.git

通过npm安装本地服务第三方依赖模块(需要已安装Node.js)

npm install

启动服务(http://127.0.0.1:3000)

npm start

本地新建test数据库, 导入测试数据库

访问接口

例如访问注册接口: http://127.0.0.1:3000/v1/user/register

目录结构

.
├── README.md 
├── package.json // 项目配置文件
├── app.js // 项目入口
├── api.js // 项目api列表配置
├── lib // 各种工具类和主要的api处理
├── model // Model
├── controller // Controller
├── service // 项目业务逻辑

About

standard api template using nodejs

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /