File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ tsconfig.tsbuildinfo
4949.env.test.local
5050.env.production.local
5151
52+ # hey-api
53+ src /lib /hey-api /generated /*
54+ openapi-ts-error- * .log
5255
53- .tanstack
54- src /lib /hey-api /generated /*
56+ .tanstack
Original file line number Diff line number Diff line change @@ -29,15 +29,25 @@ cp .vscode/settings.example.json .vscode/settings.json # (Optionnal) Setup your
2929pnpm install # Install dependencies
3030```
3131
32- ## Connect to your API
32+ ## Environment variables
3333
34- Using Hey API, you can quickly connect your app with any REST API. Just put your openapi url as ` EXPO_PUBLIC_OPENAPI_URL ` environment variable and run
34+ π¨ Using Expo Go, should not be ` localhost ` , use public IP instead
35+
36+ ``` bash
37+ EXPO_PUBLIC_BASE_URL # Base URL of your server, usefull if you are using Start UI [web]
38+
39+ # OPTIONAL TO OVERRIDE
40+ EXPO_PUBLIC_AUTH_URL # Better-auth url (default `${EXPO_PUBLIC_BASE_URL}/api/auth`)
41+ EXPO_PUBLIC_OPENAPI_URL # OpenAPI contract URL (default `${EXPO_PUBLIC_BASE_URL}/openapi/app/schema`)
42+ ```
43+
44+ ## API SDK generation
3545
3646``` bash
3747pnpm gen:api
3848```
3949
40- A new folder ` /src/lib/hey-api/generated ` will be created with stuff like to combine use Tanstack Query to fetch data.
50+ A new folder ` /src/lib/hey-api/generated ` will be created with stuff like to combine use Tanstack Query to fetch data, based on env variables .
4151
4252For example
4353``` ts
@@ -86,4 +96,4 @@ To be able to use previews on PR, you have to setup your project with EAS
86964 . Setup eas
8797 * ` eas login `
8898 * ` eas init --id {projectid} `
89- * ` eas update:configure `
99+ * ` eas update:configure `
You canβt perform that action at this time.
0 commit comments