diff --git a/apps/api/package.json b/apps/api/package.json index 2c192357..c9a77360 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -2,6 +2,7 @@ "name": "@6pm/api", "version": "0.0.0", "license": "GPL-3.0", + "main": "index.ts", "private": true, "scripts": { "dev": "next dev", diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.json index c1e94dd7..02f8bb2c 100644 --- a/apps/api/tsconfig.json +++ b/apps/api/tsconfig.json @@ -17,7 +17,8 @@ "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", - "incremental": true + "incremental": true, + "composite": true }, "include": [ "next-env.d.ts", @@ -27,4 +28,4 @@ "exclude": [ "node_modules" ] -} \ No newline at end of file +} diff --git a/apps/mobile/.env.example b/apps/mobile/.env.example new file mode 100644 index 00000000..cf782442 --- /dev/null +++ b/apps/mobile/.env.example @@ -0,0 +1,3 @@ +EXPO_USE_METRO_WORKSPACE_ROOT=1 +EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY= +EXPO_PUBLIC_API_URL= diff --git a/apps/mobile/app/(tabs)/_layout.tsx b/apps/mobile/app/(app)/(tabs)/_layout.tsx similarity index 78% rename from apps/mobile/app/(tabs)/_layout.tsx rename to apps/mobile/app/(app)/(tabs)/_layout.tsx index 22a49b62..db19c68d 100644 --- a/apps/mobile/app/(tabs)/_layout.tsx +++ b/apps/mobile/app/(app)/(tabs)/_layout.tsx @@ -2,16 +2,12 @@ import { Tabs } from 'expo-router'; import React from 'react'; import { TabBarIcon } from '@/components/navigation/TabBarIcon'; -import { Colors } from '@/constants/Colors'; -import { useColorScheme } from '@/hooks/useColorScheme'; export default function TabLayout() { - const colorScheme = useColorScheme(); - return ( { + const hc = await getHonoClient() + const res = await hc.v1.auth.me.$get() + if (res.ok) { + return await res.json() + } else { + throw new Error(await res.text()) + } + }, + }) + + return ( + + + + + CG + + + + SS + + + {data?.email ? `Logged as ${data.email}` : 'loading...'} +