playing-with-graphql
所属分类:数据库系统
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2021-07-27 08:09:43
上 传 者:
sh-1993
说明: 玩graphql,,
(playing-with-graphql,,)
文件列表:
.vs/ (0, 2019-01-10)
.vs/ProjectSettings.json (35, 2019-01-10)
.vs/VSWorkspaceState.json (100, 2019-01-10)
.vs/playing-with-graphql/ (0, 2019-01-10)
.vs/playing-with-graphql/v15/ (0, 2019-01-10)
.vs/playing-with-graphql/v15/.suo (18944, 2019-01-10)
.vs/slnx.sqlite (77824, 2019-01-10)
Sultan/ (0, 2019-01-10)
Sultan/dummyData.js (1292, 2019-01-10)
Sultan/schema.js (3476, 2019-01-10)
aminu/ (0, 2019-01-10)
aminu/groceristar/ (0, 2019-01-10)
aminu/groceristar/explanation.md (685, 2019-01-10)
aminu/groceristar/queries.js (1261, 2019-01-10)
aminu/groceristar/schema.js (1084, 2019-01-10)
db-recipes.json (881485, 2019-01-10)
groceristar.js (446, 2019-01-10)
groceristar2.js (774, 2019-01-10)
groceristar3.js (103, 2019-01-10)
index.js (6380, 2019-01-10)
package-lock.json (100503, 2019-01-10)
package.json (873, 2019-01-10)
search.js (646, 2019-01-10)
server.js (1213, 2019-01-10)
src/ (0, 2019-01-10)
src/data/ (0, 2019-01-10)
src/data/departments.js (1143, 2019-01-10)
src/data/index.js (784, 2019-01-10)
src/data/users.js (889, 2019-01-10)
src/node.js (532, 2019-01-10)
userType.graphql (115, 2019-01-10)
# Setting up the server
Install latest versions of node.js and npm
type the command `npm start`
open `http://localhost:3000/graphql` on your browser to test the server
# playing-with-graphql
# For setting up this project, follow:
https://graphql.org/graphql-js/
# Links/credentials to MongoDB databases:
#### Groceristar database
```
"url": "mongodb://heroku_p3w65n77:h3ab8q3uaqdk7tjrauhbl7dd6r@ds235065.mlab.com:35065/heroku_p3w65n77",
"name": "groceryDS",
```
#### Recipe Search API database
```
"searchDS": {
"url": "mongodb://heroku_ghbnqks1:eb8kogbcofqvkh13d6ccep825l@ds139994.mlab.com:39994/heroku_ghbnqks1"
},
```
#### ChickenKyiv(Recipe server) database
```
"recipeDS": {
"url": "mongodb://heroku_p0dxgncb:gl2rr2bi235aoqfdojelqspjn1@ds147052.mlab.com:47052/heroku_p0dxgncb"
}
```
# Database schemes for ChickenKyiv
- https://chickenkyiv.gitbook.io/documentation/database-schemes
- https://github.com/ChickenKyiv/database-visuals
- https://github.com/ChickenKyiv/database-visuals/tree/master/groceristar/models
- https://github.com/ChickenKyiv/database-visuals/tree/master/rapi/models
- https://github.com/ChickenKyiv/database-visuals/tree/master/recipeSearchAPI/models
# Long term goals
We have at least few databases and I prepare some plan so we actually will not just replicate logic of our current API servers, but we also will extend and update it.
Some details please read here:
- https://medium.com/groceristar/chickenkyiv-database-logic-intro-part-1-b2c449d92aa3
- https://medium.com/groceristar/chickenkyiv-database-logic-simple-samples-part-2-1ee3ccc6b3d
- https://medium.com/groceristar/chicken-kyiv-recipe-db-schema-part3-b80f33ec5d96
# Other links for further reading
https://github.com/ChickenKyiv/awesome-graphql-beginner-links
近期下载者:
相关文件:
收藏者: