| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
Simple Demo Application
API built with Node + Express + GraphQL + Sequelize (supports MySQL, Postgres, Sqlite and MSSQL).
WebApp built with React + Redux.
Written in ES6 using Babel + Webpack.
[nodemon] starting `babel-node src/index.js --presets es2015,stage-2` SETUP - Connecting database... SETUP - Loading modules... SETUP - GraphQL... SETUP - Syncing database tables... INFO - Database connected. INFO - Database sync complete. SETUP - Starting server... INFO - Server started on port 3000.
Video: MOV
fullstack-graphql โโโ api (api.example.com) โ โโโ src โ โ โโโ config โ โ โโโ models โ โ โโโ schema โ โ โโโ setup โ โ โโโ index.js โ โ โ โโโ package.json โ โโโ web (example.com) โ โโโ public โ โโโ src โ โ โโโ components โ โ โโโ setup โ โ โโโ index.js โ โ โ โโโ .env โ โโโ package.json โ โโโ .gitignore โโโ README.md
These queries are generated on client side using queryBuilder() helper defined in /web/src/setup/helpers.js
|
Query - Get List query {
thoughts {
id,
name,
thought
}
}
|
Response {
"data": {
"thoughts": [
{
"id": 1,
"name": "Arya Stark",
"thought": "A girl has no name"
},
{
"id": 2,
"name": "Jon Snow",
"thought": "I know nothing"
}
]
}
}
|
|
Query - Get by Param query {
thought(id: 1) {
id,
name,
thought
}
}
|
Response {
"data": {
"thought": {
"id": 1,
"name": "Arya",
"thought": "A girl has no name"
}
}
}
|
|
Mutation - Create mutation {
thoughtCreate(
name: "Tyrion Lannister",
thought:"I drink and I know things"
) {
id
}
}
|
Response {
"data": {
"thoughtCreate": {
"id": 3
}
}
}
|
|
Mutation - Remove mutation {
thoughtRemove(id: 3) {
id
}
}
|
Response {
"data": {
"thoughtRemove": {
"id": null
}
}
}
|
Facebook Groups: NodeJS โข ReactJS โข GraphQL
Reddit: NodeJS โข ReactJS โข GraphQL
Following projects have been built with or inspired from fullstack-graphql
If you liked this project, please donate to support it โค๏ธ
Copyright (c) 2017-18 Atul Yadav http://github.com/atulmy
The MIT License (http://www.opensource.org/licenses/mit-license.php)
| Back | FazBrowse Home | New Git URL |