- This app was only tested on Android
- Make sure you are running node version: 22.18.0 or higher (matters because I'm using .ts)
npm iin /backend & /expo-app- Create .env in /backend with: TOKEN, STORE_URL, API_VER, PORT
- Change
BACKEND_URL, andBACKEND_PORTin /expo-app/constants/Endpoint.ts - npm run start in /backend & same in /expo-app
- Create Customer:
-H "Content-Type: application/json" \
-d '{
"email": "your@email.com",
"password": "yourpassword",
"firstName": "FirstName",
"lastName": "LastName"
}'
- Create token:
-H "Content-Type: application/json" \
-d '{
"email": "your@email.com",
"password": "yourpassword"
}'
- Unit & E2E tests with jest
- Store images in local storage to save mobile data
- Break up [id].tsx into smaller components
- Merge useProduct & useProductList custom hooks into one, passing props for both use cases
- Add "load more" button to the list of products (or add flatlist back & fix the dimensions, since FlatList is virtualised & has lazyloading)