One Next.js codebase for iOS, Android and Web using Capacitor, TailwindCSS and authentication with Supertokens, written in Typescript
This product is a monorepo that provides a starter project for building universal applications with Next.js, Tailwind CSS, and Capacitor. It allows users to use Next.js routing on iOS and Android, enabling the sharing of code between different platforms while staying in a familiar web development stack. The project structure is organized using Turborepo, with separate repositories for the web application and the mobile apps. It includes Supertokens for authentication and session management, with official support from their team. React components are shared using a UI package, and there are shared libraries, configurations, and other operations.
To use this product, follow these steps:
npx create-supertokens-app@latest --manager=yarn to create a new Supertokens app using the latest version.npm install --global yarn.cd <folder>.yarn install to install the required dependencies.next-app folder and run yarn build followed by yarn open:ios.next-app folder and run yarn build followed by yarn open:android.This product provides a monorepo structure for building universal applications with Next.js, Tailwind CSS, and Capacitor. It allows developers to share code between platforms while staying within their web development stack. Authentication and session management are handled by Supertokens, and there is official support for secure authentication on all platforms. The use of Turborepo and shared packages ensures consistency and reduces duplication. Overall, this product offers a convenient and maintainable solution for developing universal applications.