Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/haikyuu/react-native-feed

News feed built with react-native, apollo-client and graphql & powered by postgraphql
https://github.com/haikyuu/react-native-feed

apollo-client graphql postgraphql react-native

Last synced: about 2 months ago
JSON representation

News feed built with react-native, apollo-client and graphql & powered by postgraphql

Lists

README

        

# React-native Feed

An experimental feed app built with react-native.

## Screenshot

![Screenshot](screenshot.png?raw=true "Feed Screenshot")

## Getting Started

These instructions will get you up and running.πŸƒ

### Prerequisites

You'll need a runningπŸƒ [postgresql](https://www.postgresql.org/download/) database
Check this awesome [guide](https://github.com/calebmer/postgraphql/blob/master/examples/forum/TUTORIAL.md#installation)

### Installing
Create the database
```
createdb feed
psql feed < database.sql
```
Install everything. (You should try [yarn](https://yarnpkg.com/))
```
npm install -g postgraphql
npm install
```
Ruuun : πŸƒπŸƒπŸƒ
```
postgraphql -c postgres://localhost:5432/feed --watch
react-native run-ios
#or
react-native run-android
```

Image upload won't work out of the box (the body parser of the node.js server has a default size limit of `100kb`), you'll need to change that:
- Find where postgraphql was installed :
```
npm bin -g
cd to the given location
#you'll find a symlink to postgraphql
cd to the original folder
```

- [Change `src/postgraphql/http/createPostGraphQLHttpRequestHandler.js` ](https://github.com/calebmer/postgraphql/pull/285/files) and include `limit: '50mb'` in the `bodyparser` options. [Check this](https://github.com/calebmer/postgraphql/pull/285/files)

## Built With

* [react-native](https://facebook.github.io/react-native/)
* [apollo-client](http://dev.apollodata.com/) - The **awesome** graphql client
* [graphql](http://graphql.org/)
* [postgresql](https://www.postgresql.org/)
* [postgraphql](https://github.com/calebmer/postgraphql) - The **amazing** Graphql API creator.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details