代码拉取完成,页面将自动刷新
This is the entire source code of the official F8 app of 2016, available on Google Play and the App Store.
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.
gem install cocoapods --pre
)$ git clone https://github.com/fbsamples/f8app.git
$ cd f8app
$ npm install
$ (cd ios; pod install) # only for iOS version
$ 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
$ npm start
$ npm run import-data
Make sure everything works by visiting:
$ 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
$ react-native run-ios
Could not connect to development server
In a separate terminal window run:
$ react-native start
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。