实战GraphQL+express+mysql项目完整demo
生活随笔
收集整理的這篇文章主要介紹了
实战GraphQL+express+mysql项目完整demo
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
安裝步驟:
1.npm install
2.數(shù)據(jù)庫安裝及連接
使用/graphql.sql安裝數(shù)據(jù)庫 修改conf/db.js中相關(guān)配置
3.啟動步驟
npm start
4.訪問:
localhost:3003
通過開發(fā)者工具查看相關(guān)的接口訪問
5.訪問調(diào)試工具:
http://localhost:3003/graphql
http://localhost:3003/article
6.官方的簡單版本
/app_simple.js
7.schame 最小的實現(xiàn)版本
/graphql/user/userSchame.js
8.demo地址
如果對你有幫助求個star - -!
https://github.com/heiyu4585/graphql-express-mysql
總結(jié)
以上是生活随笔為你收集整理的实战GraphQL+express+mysql项目完整demo的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TCP TIME_WAIT 详解
- 下一篇: 使用maxwell实时同步mysql数据