实战GraphQL+express+mysql项目完整demo

3,352 阅读1分钟

安装步骤:

1.npm install

2.数据库安装及连接

使用/graphql.sql安装数据库 修改conf/db.js中相关配置

3.启动步骤

npm start

4.访问:

localhost:3003

通过开发者工具查看相关的接口访问

5.访问调试工具:

http://localhost:3003/graphql

http://localhost:3003/article

6.官方的简单版本

/app_simple.js

7.schame 最小的实现版本

/graphql/user/userSchame.js

8.demo地址

如果对你有帮助求个star - -!

https://github.com/heiyu4585/graphql-express-mysql