Skip to content

Lokhnor/shopify-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shopify Store Monorepo

Disclaimer

  • This app was only tested on Android

Steps to run:

  • Make sure you are running node version: 22.18.0 or higher (matters because I'm using .ts)
  • npm i in /backend & /expo-app
  • Create .env in /backend with: TOKEN, STORE_URL, API_VER, PORT
  • Change BACKEND_URL, and BACKEND_PORT in /expo-app/constants/Endpoint.ts
  • npm run start in /backend & same in /expo-app

Task 2

  • 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"
     }'

Improvements

  • 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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published