Frubana dashboard.
Running:
yarn
yarn start
You'll get:
- Hot reloading enabled for localhost environment
- Test graphql with GraphQL Playgroud
/region/:region
/order/:order
query orders {
orders {
_id
region_code
routeId
}
}
query regions {
regions
}
query ordersByRegionCode($regionCode: String) {
ordersByRegionCode(regionCode: $regionCode) {
region_code
routeId
}
}
query routes {
routes
}
query ordersByRouteId($routeId: String) {
ordersByRouteId(routeId: $routeId) {
region_code
products {
name
price
quantity
total
}
routeId
}
}
query productsByOrderId($orderId: String!) {
productsByOrderId(orderId: $orderId) {
name
quantity
price
total
completed
}
}
mutation completeProduct($orderId: String!, $productId: String!) {
completeProduct(orderId: $orderId, productId: $productId) {
name
completed
}
}
subscription onCompleteProduct($orderId: String!, $productId: String!) {
onCompleteProduct(orderId: $orderId, productId: $productId) {
name
completed
}
}
query ordersByRegion
{
"regionCode": "BOG"
}
query ordersByRouteId
{
"routeId": "bcfccef8-c9ae-4879-9fa2-6c68874643e7"
}
query productsByOrderId
{
"orderId": "2d2dc292-b2d8-4017-9ffd-33e17d4bcc40"
}
mutation completeProduct
{
"orderId": "2d2dc292-b2d8-4017-9ffd-33e17d4bcc40",
"productId": "91f77c18-1222-40e2-95d1-d653dd0c3cfa"
}
subscription onCompleteProduct
{
"orderId": "2d2dc292-b2d8-4017-9ffd-33e17d4bcc40",
"productId": "91f77c18-1222-40e2-95d1-d653dd0c3cfa"
}
TODO
-
Create UI
-
Clean up code
-
Ignore
schema.graphql
-
Add
.env
config file to set every environment. -
Add Docz
-
Add tests
-
Responsive design
-
Add workspace for Mobile package with React Native
-
Pages are fragment queries based on url params:
/:order
-
TODO: set
ORDER
inpackages/web/src/Routes.tsx
-
Check with viewport < 768