mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-08 03:00:20 +00:00
Refactor API endpoints: update subgroup membership references to subgroup members and streamline cache visibility logic based on selected cache ID.
This commit is contained in:
1 parent
4407d05fdb
commit
e3564bea08
7 files changed
+73
-189
No files matched your search
@@ -6,12 +6,32 @@ Treasure Hunt mobile app built with React Native and Expo.
|
||||
|
||||
```bash
|
||||
npm i
|
||||
npx expo start --android
|
||||
npm start
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
- The app accesses game/auth data through the centralized API endpoint via `src/components/API/API.js`.
|
||||
- Navigation is handled with React Navigation native stack.
|
||||
- Sometimes you might have to switch the API Endpoint URL. This is just Because of the fact that when I'm using the app I can't access the API endpoint, from the global URL. Therefore, I need my local API Server's IP as the URL
|
||||
- Just Uncomment the `API_ENDPOINT` variable in `src/components/API/API.js` to use the actual API Server Which is `api.bobby.ip-ddns.com` [Do not add any port thing here as it uses port 80 by default].
|
||||
- IF encountering network issues, ensure the API endpoint is set to 'http://api.bobby.ip-ddns.com' and not 'http://192.168.8.100:3000'.
|
||||
- The reason for 'http://192.168.8.100:3000' is due to the API server being on my (Mudabbir's) home network. I need to use local ip due to loop back restrictions with home network(needed for security).
|
||||
- Just uncomment line 1 in `src/components/API/API.js` to use the actual API Server Which is `api.bobby.ip-ddns.com` [Do not add any port thing here as it uses port 80 by default].
|
||||
|
||||
|
||||
# DB Structure:
|
||||
|
||||
API endpoint: `http://api.bobby.ip-ddns.com/`
|
||||
|
||||
### Tables:
|
||||
- `users`
|
||||
- `teams`
|
||||
- `team-members`
|
||||
- `subgroups`
|
||||
- `subgroup-members`
|
||||
- `groups`
|
||||
- `game-types`
|
||||
- `db`
|
||||
- `caches`
|
||||
- `admin-waitlist`
|
||||
|
||||
#### Append Table to API URL to view table's json data on browser.
|
||||
I.e: `http://api.bobby.ip-ddns.com/users` or `http://api.bobby.ip-ddns.com/subgroups-members`
|
||||
Reference in new issue
Block a user