Giter Site home page Giter Site logo

efraimbart / sefaria-mobile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sefaria/sefaria-mobile

0.0 0.0 0.0 850.01 MB

Sefaria for iOS and Android

Home Page: http://www.sefaria.org

JavaScript 96.86% Java 0.61% Objective-C 0.63% Shell 0.44% Ruby 1.35% C 0.01% Swift 0.02% Starlark 0.08%

sefaria-mobile's Introduction

Sefaria-iOS

This repo contains the source code and export script to generate the content for Sefaria's iOS App AND Sefaria's Android App. The repo name is a historical holdover, but it includes code for both apps.

We're using React-Native, so much of the app is written in JavaScript and we deploy almost the same code to both Android and iOS. There are minor differences in native packages that we use and a small amount of native code we've written ourselves.

Getting Started

brew install node
brew install watchman
git clone https://github.com/Sefaria/Sefaria-iOS/
cd Sefaria-iOS                          
npm install
npm run setup
gem install cocoapods
cd ios
pod install

Put GoogleService-Info.plist in the ios directory. It's available from the Firebase console (or your friendly co-worker.) This step can be skipped if just running for android. Skipping it for ios can get you in trouble though.

To build and start the simulator:

From the root of the repo, run react-native start.
From another terminal, run react-native run-ios

Alternatively, you can open /ios/ReaderApp.xcworkspace and hit run.

Local Development

It's quite natural to want to test the app against a local instance of Sefaria-Project. This can be done in 2 simple steps:

  1. Set Api._baseHost to the ip address that your local server is serving from (this has to be the actual ip address displayed by django, not localhost).
  2. From your home directory, navigate to Android/Sdk/platform-tools (or add to PATH). Then execute ./adb reverse tcp:8000 tcp:8000

sefaria-mobile's People

Contributors

nsantacruz avatar rneiss avatar blockspeiser avatar edamboritz avatar eliezerisrael avatar gabrielwiner avatar ethanswe avatar dependabot[bot] 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.