GithubHelp home page GithubHelp logo

arles96 / react-native-upload-files-to-meteor-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mgscreativa/react-native-upload-files-to-meteor-server

0.0 1.0 0.0 1.68 MB

License: GNU General Public License v3.0

HTML 4.41% JavaScript 95.59%

react-native-upload-files-to-meteor-server's Introduction

React Native Upload Files to Meteor Server

Sample app to demostrate upload files from React Native app to Meteor Server, with DropBox integration. This demo uses expo, to install it just run npm install expo-cli --global, it's a free and open source toolchain built around React Native to help you build native iOS and Android projects using JavaScript and React, see details here.

Run Meteor Server

  • Download/checkout this repo
  • cd meteor-server
  • Edit settings-development.json, complete DROPBOX_TOKEN property. Instructions here Prepare: Get access to DropBox API:. Take a look at allowedUploadFormats to check allowed upload files, by default png|jpg|jpeg|gif|mp4|mov|qt|pdf|ods
  • Run ~/meteor --settings settings-development.json --port 3000
  • Visit http://localhost:3000 and login with [email protected] and password
  • Click on Files menu to see current uploaded files

Run React Native App

  • Download Expo app to your mobile device iOS - Android
  • cd react-native-app
  • Run ~/expo start
  • Run app from expo then select media from camera roll, take a picture or pick a file (pdf or ods, or image)
  • Upload the file through:
    • Meteor Method (Uses DDP and base64, very unefficient. Currently supports only image files. Can't upload large files, like videos. Document files [ods, pdf] get corrupted, I think because of base64).
    • POST request (Upload anything allowed and it works!)
    • Apisause POST (the same as above but using the Apisause npm library)

Based on

react-native-upload-files-to-meteor-server's People

Contributors

mgscreativa avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.