Thanks for purchasing the 2mrw Boilerplate from me! Follow along to get the app up and running in 10-15 minutes!
Clone The Boilerplate From GitHub
Install dependencies
Rename .env.example to .env.local
.env.example
file in the root of the codebase. Let’s rename it to .env.local
.You should now have a .env.local
file with the variables below. That’s it for now. Let’s continue to the configuration files section here.components, app
, etc.
/react-email-starter/
contains email templates
/supabase/
contains supabase edge functions and migration files
/src/middleware.ts
handles middleware (e.g. authentication, etc.).
/src/middleware/handlers
contains various functions and handlers that are used inside the middleware.ts file
/src/app/api/
handles API calls (each route.ts file is one API endpoint).
/src/config/
contains configuration files
/src/enums/
contains enums
/src/interfaces/
contains all interfaces that are not props from a component
/src/lib/qClient/
contains the React Query client configuration
utils/
contains functions such as formatting dates, handling Supabase errors, etc.
/src/services/
contains Supabase client and admin configurations, and centralises database interactions and queries.
database/
database operations (e.g. HTTP requests, etc.)domain/
domain logicemail/
email serviceintegration/
external services such as Supabase, Loops, etc.stripe/
Stripe integration