新闻源使用了 react-native、apollo-client 和 graphql,并由 postgraphql 提供支持
新闻源使用了 react-native、apollo-client 和 graphql,并由 postgraphql 提供支持
An experimental feed app built with react-native.
These instructions will get you up and running.
You'll need a running postgresql database Check this awesome guide
Create the database
createdb feed
psql feed < database.sqlInstall everything. (You should try yarn)
npm install -g postgraphql
npm installRuuun :
postgraphql -c postgres://localhost:5432/feed --watch
react-native run-ios
#or
react-native run-androidImage 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:
npm bin -g
cd to the given location
#you'll find a symlink to postgraphql
cd to the original foldersrc/postgraphql/http/createPostGraphQLHttpRequestHandler.js and include limit: '50mb' in the bodyparser options. Check thisThis project is licensed under the MIT License - see the LICENSE.md file for details
暂无开放 Issues,或尚未同步最近议题。