1 Star 0 Fork 0

babyangeltears / f8app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

F8 App 2016

This is the entire source code of the official F8 app of 2016, available on Google Play and the App Store.

How We Build It

We've created a series of tutorials at makeitopen.com that explain how we built the app, and that dive into how we used React Native, Redux, Relay, GraphQL, and more.

Requirements

  1. React Native (follow iOS and Android guides)
  • Xcode 7.3 +
  1. CocoaPods (only for iOS)
  • Version 1.0+ recommended (gem install cocoapods --pre)
  1. MongoDB (needed to run Parse Server locally)

Setup

  1. Clone the repo
$ git clone https://github.com/fbsamples/f8app.git
$ cd f8app
  1. Install dependencies (npm v3+):
$ npm install
$ (cd ios; pod install)        # only for iOS version
  1. Make sure MongoDB is running:
$ lsof -iTCP:27017 -sTCP:LISTEN

NOTE: if installed with Homebrew run brew info mongo and check out the Caveats section.

If you prefer to use an external MongoDB server, set DATABASE_URI:

$ export DATABASE_URI=mongodb://example-mongo-hosting.com:1337/my-awesome-database
  1. Start Parse/GraphQL servers:
$ npm start
  1. Import sample data (the local Parse Server should be running):
$ npm run import-data

Make sure everything works by visiting:

  1. Running on Android:
$ react-native run-android
$ adb reverse tcp:8081 tcp:8081   # required to ensure the Android app can
$ adb reverse tcp:8080 tcp:8080   # access the Packager and GraphQL server
  1. Running on iOS:
$ react-native run-ios

Troubleshooting

Could not connect to development server

In a separate terminal window run:

$ react-native start

空文件

简介

Source code of the official F8 app of 2016, powered by React Native and other Facebook open source projects. 展开 收起
JavaScript 等 4 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/AngelLuo/f8app.git
git@gitee.com:AngelLuo/f8app.git
AngelLuo
f8app
f8app
master

搜索帮助