Skip to content

local server for downloading realm-sync-cocoa-x.x.x.tar.gz

Notifications You must be signed in to change notification settings

yuanyinchun/realmFileServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why this project

My aim is to integrate realm into react native project. Durning build process realm start to download file 'realm-sync-cocoa-3.9.1.tar.gz', which located in aws s3. The downloading speed is very slow in China. So I write this local file server to speed up downloading process.

Usage

1.copy 'realm-sync-cocoa-3.9.1.tar.gz' to public folder

'realm-sync-cocoa-3.9.1.tar.gz' file size is about 137MB, exceeds GitHub's file size limit of 100MB, so this file is not included in repo.

you have to download this file yourself from https://static.realm.io/downloads/sync/realm-sync-cocoa-3.9.1.tar.gz

screenshot

2.install dependency

npm install

3.start server

node .

after server started, visit http://127.0.0.1:8080/downloads/sync/realm-sync-cocoa-3.9.1.tar.gz in web browser, realm-sync-cocoa-3.9.1.tar.gz should be downloaded.

4.update reaml download url in react-native project

In react-native project, change this line in file 'node_modules/realm/scripts/download-realm.js':

screenshot

5.start react-native project

react-native run-ios

in console output you can see realm-sync-cocoa-3.9.1.tar.gz will be quickly downloaded from your local server

Notice

realm-sync-cocoa-3.9.1.tar.gz is the current version when I write this project, in the future realm team may update this file's version. Be careful with version number.

Issue and PR are welcomed!

About

local server for downloading realm-sync-cocoa-x.x.x.tar.gz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published