Skip to content

A react native project using typescript and supabase for its backend. Includes stripe payment integration

Notifications You must be signed in to change notification settings

ArinzeJeffrey-droid/improved-enigma

Repository files navigation

Project setup

  • Clone repository
  • Install required dependencies
npm install
  • Backend setup

    • Create a Supabase account

    • Create a project in your Supabase Dashboard

    • Create an env file and get the values for the below environment variables in your project settings

      EXPO_PUBLIC_SUPABASE_URL=
      EXPO_PUBLIC_SUPABASE_ANON=
    • Login into supabase in your project directory terminal with npx supabase login

    • Run npx supabase db push to create the required tables for the database.

Stripe Setup

  • Create a stripe account or login if you have one already

  • In your test account settings, get the values for the below environment variables below

      EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY=
      STRIPE_SECRET_KEY=
  • Add the stripe environment variables to your supabase project with the below commands

       npx supabase secrets set STRIPE_SECRET_KEY=<your-secret-key>
       npx supabase secrets set EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY=<your-publishable-key>

    And run npx supabase secrets list to confirm if it's been added.

Finally, run npm start to run the application.

About

A react native project using typescript and supabase for its backend. Includes stripe payment integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published