https://github.com/lilactown/apollo-cljs-example
apollo-cljs-example
https://github.com/lilactown/apollo-cljs-example
Last synced: 6 months ago
JSON representation
apollo-cljs-example
- Host: GitHub
- URL: https://github.com/lilactown/apollo-cljs-example
- Owner: lilactown
- Created: 2019-05-05T21:28:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T03:20:20.000Z (over 4 years ago)
- Last Synced: 2023-04-20T17:01:24.550Z (over 2 years ago)
- Language: Clojure
- Size: 35.2 KB
- Stars: 24
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apollo-cljs-example
This is an example of using [Apollo GraphQL's React client](https://www.apollographql.com/docs/react/) in a ClojureScript browser application.
The example code is the result of following along the [react-apollo Getting Started guide](https://github.com/apollographql/apollo-client/blob/49fca2667986bd44f3ae5056853b6aed931156c8/docs/source/get-started.mdx).
It uses the following libraries & tools:
- [shadow-cljs](https://github.com/thheller/shadow-cljs) for compiling ClojureScript to JS
- [helix](https://github.com/Lokeh/helix/) for using and creating React components
- [cljs-bean](https://github.com/mfikes/cljs-bean) for interoping with JS objects easily
- [@apollo/react-hooks](https://www.apollographql.com/docs/react/api/react-hooks/)
- [apollo-boost](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-boost)## Development
```
git clone https://github.com/Lokeh/apollo-cljs-example.gitcd apollo-cljs-example
npm start
```This will clone the repo and start the shadow-cljs build server.
Navigate to http://localhost:8700 to run the application.
## License
Copyright 2019 Will Acton. Licensed MIT