Common commands you need to know for the React Native Supabase Turbo Starter Kit
Learn about the common commands you need to know to work with the React Native Supabase Turbo Starter Kit.
Here are some common commands you'll need to know when working with the React Native Supabase Turbo Starter Kit.
Note: You don't need these commands to kickstart your project, but it's useful to know they exist for when you need them.
Installing Dependencies
To install the dependencies, run the following command:
pnpm iThis command will install all the necessary dependencies for the project.
Starting the Development Server
Start the development server for the web application with:
pnpm run devRunning Supabase CLI Commands
Supabase is installed in the apps/expo-app folder. To run commands with the Supabase CLI, use:
pnpm run --filter app supabase <command>For example, if Supabase documentation recommends a command like:
supabase linkYou would run:
pnpm run --filter app supabase linkStarting Supabase
To start Supabase, run:
pnpm run supabase:web:startThis command starts the Supabase web server.
Starting Stripe
To test the billing system, start Stripe with:
pnpm run stripe:listenThis routes webhooks to your local machine.
Resetting Supabase
To reset the Supabase database, which is necessary when you update the schema or need a fresh start, run:
pnpm run supabase:web:resetGenerate Supabase Types
When you update the Supabase schema, generate the latest types for the client by running:
pnpm run supabase:web:typegenThis should be done every time the Supabase schema is updated.
Running Tests
To run the tests for the project, use:
pnpm run testCleaning the Project
To clean the project, run:
pnpm run clean:workspacespnpm run cleanThen, reinstall the dependencies:
pnpm iType-Checking the Project
To type-check the project, use:
pnpm run typecheckLinting the Project
To lint the project using ESLint, run:
pnpm run lint:fixFormatting the Project
To format the project using Prettier, run:
pnpm run format:fixThese commands will help you manage and maintain your project efficiently.