GithubHelp home page GithubHelp logo

thusharprakash / golang-rn-ipfs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from athulantonynp/golang-rn-ipfs

0.0 0.0 0.0 1.8 MB

IPFS mobile with Golang via React Native

Shell 0.14% JavaScript 5.54% Ruby 0.31% Objective-C 24.08% Java 39.30% Go 19.02% Kotlin 1.59% TypeScript 2.48% Objective-C++ 0.17% Swift 7.33% C 0.05%

golang-rn-ipfs's Introduction

About Project

This project aims to bring IPFS support in Mobile Apps (Via React Native as F.E) with the help of https://github.com/ipfs-shipyard/gomobile-ipfs library which is written in Golang.

Getting Started

Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.

Building Golang SDK

You need

  1. Golang 1.18 installed
  2. Java 17 or higher installed.
  3. For Android, Make sure NDK version 23.1.7779620 is installed.
  4. Add below configurations to your .zshrc or .bashrc file
macOS
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
export ANDROID_HOME="$HOME/Library/Android/sdk"
export ANDROID_NDK_HOME="$ANDROID_HOME/ndk/23.1.7779620"
export PATH="$PATH:$ANDROID_HOME/emulator"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/Contents/Home"

Run the below commands for the first time

npm install
cd go
go mod download
cd bind/core
go run golang.org/x/mobile/cmd/gomobile init

Also start the RN Metro server by running `npm run start` in a seperate terminal

Now, to run the Android App,

./installAndroid.sh

Now, to run the iOS App,

./buildiOS.sh

Start the Metro Server

First, you will need to start Metro, the JavaScript bundler that ships with React Native.

To start Metro, run the following command from the root of your React Native project:

# using npm
npm start

# OR using Yarn
yarn start

Start your Application

Let Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:

For Android

# using npm
npm run android

# OR using Yarn
yarn android

For iOS

# using npm
npm run ios

# OR using Yarn
yarn ios

golang-rn-ipfs's People

Contributors

thusharprakash avatar athulantony95 avatar athulantonynp 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.