Coder Social home page Coder Social logo

remix-expo's Introduction

remix-expo

Remix and Expo! Web and Mobile! The best of both worlds!

remix-expo is a full-stack, cross-platform, multi-client Monorepo built with Remix and Expo.

Share React Native components between Web and Mobile Applications!

What's inside?

This architecture uses Turborepo and PNPM as build system and package manager. It includes the following packages/apps:

Quick Start

  • Install pnpm: npm install pnpm -g
  • clone the repo: git clone github.com/tyrauber/remix-expo
  • Install the dependencies: pnpm install
  • Build all packages: pnpm build
  • Run all packages: pnpm dev

Open the urls printed in the console output:

@remix-expo/expo:dev: [09:25:05] Developer tools running on [http://localhost:19002](http://localhost:19002)
@remix-expo/remix:dev: Remix App Server started at [http://localhost:3000](http://192.168.1.56:3000)

Apps and Packages

  • expo: a Expo mobile app
  • remix: a Remix web app
  • ui: a stub ReactNative component library shared by both expo and remix applications
  • config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Stack:

Built on the backs of giants:

Special thanks to all the amazing engineers making my life easier. Respect.

Important:

This stack - using Remix and Expo together - requires the use of PNPM. Yarn or NPM will not work. Remix does not use Babel or Webpack, but ESBuild, which has limited module aliasing, so this repository uses the PNPM package manager to handle the react-native to react-native-web module aliasing. This solution was discovered and documented in react-native-web-remix-setup. Thanks Horus Lugo!

Usage

  • Setup

    • Install pnpm: npm install pnpm -g
    • clone the repo: git clone github.com/tyrauber/remix-expo
    • Install the dependencies: pnpm install
    • Build all packages: pnpm build
    • Run all packages: pnpm dev
  • Mobile

    • Dashboard: pnpm expo start
    • iOS Simulator: pnpm expo ios
  • Web

    • Run locally: pnpm remix dev
    • Deploy to Fly.to: pnpm fly deploy
    • Build: pnpm image:build
    • Test Locally: pnpm image:run

About

Expo is absolutely amazing... for mobile application development. While Expo can run in the browser, it doesn't provide all the bells and whistles required for running and scaling a production web application - specifically the lack of Page Metadata, an API and Database, Caching, and Server Side Rendering. In the past, Expo has suggested using Next.js for web applications, but Next.js brings it's own set of challenges.

Recently, the developers behind React Router released Remix, a react web application framework. After reading through the Remix tutorials, and being thoroughly impressed with the breadth of functionality and simplicity of architecture, I decided to take stab at the integration of Expo and Remix.

This project is the result. Issues and Pull Requests welcome.

remix-expo's People

Contributors

tyrauber 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.