Skip to content
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

[WIP] Advanced boilerplate #126

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

**Select a boilerplate and follow the instructions in the belonging README to get started:**

- `minimal` (_coming soon_): Minimal boilerplate with basic "Hello World" functionality
- [`minimal`](./minimal): Minimal boilerplate with basic "Hello World" functionality
- [`basic`](./basic): Basic boilerplate based on a simple data model and with a GraphQL database
- `advanced` (_coming soon_): Advanced boilerplate with a GraphQL database, authentication and realtime subscriptions

Expand Down
8 changes: 8 additions & 0 deletions advanced/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
}
}
}
3 changes: 3 additions & 0 deletions advanced/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/**/*
.expo/*
npm-debug.*
1 change: 1 addition & 0 deletions advanced/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
21 changes: 21 additions & 0 deletions advanced/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';

export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
</View>
);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
27 changes: 27 additions & 0 deletions advanced/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"expo": {
"name": "advanced",
"description": "This project is really great.",
"slug": "advanced",
"privacy": "public",
"sdkVersion": "27.0.0",
"platforms": ["ios", "android"],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
}
}
}
Binary file added advanced/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions advanced/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"main": "node_modules/expo/AppEntry.js",
"private": true,
"dependencies": {
"expo": "^27.0.1",
"react": "16.3.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz"
}
}
18 changes: 18 additions & 0 deletions advanced/server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "graphql-boilerplate",
"version": "1.0.0",
"description": "Advance graphql server boilerplate",
"main": "index.js",
"scripts": {
"start": "node src/index.js"
},
"dependencies": {
"graphql-yoga": "^1.13.1"
},
"keywords": ["react-native", "prisma", "graphcool"],
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
}
Loading