GithubHelp home page GithubHelp logo

rphlmr / supa-remix-stack Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 0.0 23 KB

A Remix Stack 100% Supabase

License: MIT License

TypeScript 86.62% JavaScript 13.38%
remix-run remix-stack supabase supabase-auth

supa-remix-stack's Introduction

Supa Remix Stack

A quick start for Remix apps with Supabase.

Learn more about Remix Stacks. Learn more about Supabase Auth Helper.

npx create-remix@latest --template rphlmr/supa-remix-stack

What's in the stack

โš ๏ธ Typescript only

Not a fan of bits of the stack? Fork it, change it, and use npx create-remix --template your/repo! Make it your own.

Development

From your terminal:

npm run dev

This starts your app in development mode, rebuilding assets on file changes.

Deployment

First, build your app for production:

npm run build

Then run the app in production mode:

npm start

Now you'll need to pick a host to deploy it to.

Seed your DB

Run seed/script.sql in your Supabase project SQL editor.

Bonus: Generate types from your DB

You need to login to Supabase first with supabase login More info : https://supabase.com/docs/reference/cli

supabase gen types typescript --project-id your_project_id > app/supabase/db_types.ts

Configure GitHub Auth

Follow the Supabase guide

DIY

If you're familiar with deploying node applications, the built-in Remix app server is production-ready.

Make sure to deploy the output of remix build

  • build/
  • public/build/

supa-remix-stack's People

Contributors

rphlmr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

supa-remix-stack's Issues

cannot install deps

Hi thanks for these remix stacks.

There's an error with npx create-remix@latest --template rphlmr/supa-remix-stack regarding dependencies.

npm install
npm WARN ERESOLVE overriding peer dependency
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @remix-run/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/typescript
npm ERR!   peerOptional typescript@"^5.1.0" from @remix-run/[email protected]
npm ERR!   node_modules/@remix-run/dev/node_modules/@remix-run/server-runtime
npm ERR!     @remix-run/server-runtime@"2.0.1" from @remix-run/[email protected]
npm ERR!     node_modules/@remix-run/dev
npm ERR!       dev @remix-run/dev@"^2.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^5.1.0" from @remix-run/[email protected]
npm ERR! node_modules/@remix-run/dev
npm ERR!   dev @remix-run/dev@"^2.0.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/typescript
npm ERR!   peerOptional typescript@"^5.1.0" from @remix-run/[email protected]
npm ERR!   node_modules/@remix-run/dev
npm ERR!     dev @remix-run/dev@"^2.0.1" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

rphlmr/supa-stripe-stack & rphlmr/supa-fly-stack seems to have similar issues.

I filed a similar bug with netlify/remix-template that they fixed, unsure it's the exact same thing though.

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.