Powered by Expo ❤️
-
Clone the repository:
git clone github.com/BKarthik7/SyncScribe cd SyncScribe
-
Install dependencies:
npm install
-
Prebuild the app:
⚠️ Note: This app isn't compatible with Expo Go.npx expo prebuild
-
Enable
LibSQL
in yourapp.json
:[ "expo-sqlite", { "useLibSQL": true } ]
-
Create a Turso account (if needed).
-
Set up your database:
- Go to the Databases tab.
- Create a new group (e.g.,
offline
). - Create a database in the new group.
- Generate and copy a database token with write/read permissions.
- Rename
.env.local.example
to.env.local
. - Add the following variables:
EXPO_PUBLIC_TURSO_DB_URL=libsql://xxxx.aws-us-east-1.turso.io EXPO_PUBLIC_TURSO_DB_AUTH_TOKEN=your_token_here
-
Create a table or set the
DATABASE_VERSION
to0
:CREATE TABLE "main"."notes" ( "id" INTEGER PRIMARY KEY, "title" TEXT, "content" TEXT, "modifiedDate" TEXT );
-
Run:
npx expo run:android
-
Start the app:
npx expo start