Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaydenseric/graphql-react-examples
Deno Ruck web app demonstrating graphql-react functionality using various GraphQL APIs.
https://github.com/jaydenseric/graphql-react-examples
deno esm graphql mjs react typescript
Last synced: 23 days ago
JSON representation
Deno Ruck web app demonstrating graphql-react functionality using various GraphQL APIs.
- Host: GitHub
- URL: https://github.com/jaydenseric/graphql-react-examples
- Owner: jaydenseric
- Created: 2018-05-23T02:11:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-06T13:20:04.000Z (over 1 year ago)
- Last Synced: 2024-10-03T12:38:02.348Z (about 1 month ago)
- Topics: deno, esm, graphql, mjs, react, typescript
- Language: JavaScript
- Homepage: https://graphql-react-examples.fly.dev
- Size: 2.14 MB
- Stars: 36
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
Awesome Lists containing this project
README
![graphql-react logo](./public/graphql-react-logo.svg)
# graphql-react examples
A [Deno](https://deno.land) [Ruck](https://ruck.tech) web app demonstrating
[`graphql-react`](https://github.com/jaydenseric/graphql-react) functionality
using various [GraphQL](https://graphql.org) APIs.## Requirements
- [Deno CLI](https://deno.land/#installation) v1.21.2+.
## Installation
For a local development installation, create a project `scripts/.env.sh` file
containing the following environment variables, with values customized for your
local environment:```sh
# Development or production mode; "true" or "false".
export RUCK_DEV="true"# The localhost port to serve the Ruck app on.
export RUCK_PORT="3000"# GitHub access token used with the GitHub GraphQL API.
export ACCESS_TOKEN_GITHUB=""
```## Scripts
### Dev
To load the environment variables from `scripts/.env.sh`, make the environment
variable modules, and serve the Ruck app:```sh
./scripts/dev.sh
```### Make public environment variable modules
To make the public environment variable modules (requires environment
variables):```sh
./scripts/makeEnvModules.sh
```### Serve
To serve the Ruck app for either development or production (requires environment
variables):```sh
./scripts/serve.sh
```### Format
To format the project:
```sh
deno fmt
```### Lint
To lint the project:
```sh
deno lint
```