Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rricard/mobilesync
React-Native application that uses GraphQL & Relay to sync a filesystem
https://github.com/rricard/mobilesync
Last synced: about 14 hours ago
JSON representation
React-Native application that uses GraphQL & Relay to sync a filesystem
- Host: GitHub
- URL: https://github.com/rricard/mobilesync
- Owner: rricard
- Created: 2015-10-08T06:28:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-15T08:36:35.000Z (almost 9 years ago)
- Last Synced: 2024-08-08T00:31:11.137Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 303 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MobileSync
[![Circle CI](https://circleci.com/gh/rricard/MobileSync/tree/master.svg?style=svg)](https://circleci.com/gh/rricard/MobileSync/tree/master)
[![Code Climate](https://codeclimate.com/github/rricard/MobileSync/badges/gpa.svg)](https://codeclimate.com/github/rricard/MobileSync)React-Native application that uses GraphQL & Relay to sync a filesystem
## Install
```
npm i -g react-native-cli
git clone [email protected]:rricard/MobileSync.git
cd MobileSync
npm i
```## Run
```
npm start # production
npm run develop # development
```And then, in an another terminal:
```
react-native run-android
```Or you can build the project in XCode.
## Test & contribute
```
flow
npm test
npm run lint
```Don't forget to check those before sending a PR. Note that flow checks failing
inside React Native are OK.## Architecture
MobileSync is broke down in two dependent parts: the GraphQL file server and the
React/Relay client.### Underlying FileSystem Model
Here is the most flexible filesystem authorization system we could create:
![FileSystem Model](./models/filesystem.png)
In our situation though, we'll not implement it completely.
### GraphQL Schema / Interface
GraphQL will expose a few types to query the filesystem.
![GraphQL Schema](./models/schema.png)