• Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    CSS
  • License
    MIT License
  • Created almost 3 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Remix Expo Monorepo

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.

More Repositories

1

stock_quote

A ruby gem that retrieves stock quotes from IEX
Ruby
208
star
2

sec_query

A ruby gem for querying the United States Securities and Exchange Commission Edgar System.
Ruby
49
star
3

census_api

A Ruby Gem for querying the US Census Bureau API
Ruby
30
star
4

acts_rateable

Rails 3 Bayesian Ratings Gem
CSS
9
star
5

mongodb-rails3-tutorial

A Rails 3, MongoDB, MongoMapper Tutorial / Example Application.
7
star
6

email_engine

Send and track emails at scale with Rails and Redis
JavaScript
6
star
7

census_shapes

A Ruby Gem for importing US Census Shapefiles into Postgis
Ruby
4
star
8

browseTunes

100% HTML5 / Javascript, iTunes-Compatible Media Player
3
star
9

font-league

A ruby gem compiling the fonts of The League of Moveable Type
CSS
3
star
10

CongressTMI

Fight For the Future, Congress TMI Campaign
JavaScript
1
star
11

expo-firebase-example

Implementing react-native-firebase/analytics in Expo SDK 46
TypeScript
1
star
12

sst-postgraphile

SST Postgraphile
TypeScript
1
star
13

sst-aurora-v2

SST RDS Postgres
TypeScript
1
star
14

font-osm

MapLibre GL JS Font Awesome 6 Open Street Map Icons with Planetiler and Protomaps
JavaScript
1
star
15

get_stocks

Sample 'stock_quote' rails 3 application
Ruby
1
star
16

bootstrap-pages

One-Page Bootstrap Template using Scroll-Spy and Carousel Indicators, Controls to provide smooth, responsive navigation of page sections.
1
star
17

sst-maps

SST NextJS, MapLibreGL JS, Protomaps
TypeScript
1
star
18

tradeking

TradeKing API Ruby Gem
Ruby
1
star
19

bootstrap-fullscreen-carousel

Fullscreen bootstrap carousel that fills the screen and maintains the image aspect ratio.
1
star