1
0
Fork
You've already forked smartshop-web
0
ignore this
  • TypeScript 78.7%
  • CSS 11.9%
  • HTML 9.4%
2025年07月17日 19:53:13 +01:00
public goodbye 2025年07月17日 19:53:13 +01:00
src goodbye 2025年07月17日 19:53:13 +01:00
.gitignore Initialize project using Create React App 2025年07月15日 16:39:54 +00:00
package-lock.json Initialize project using Create React App 2025年07月15日 16:39:54 +00:00
package.json goodbye 2025年07月17日 19:53:13 +01:00
README.md goodbye 2025年07月17日 19:53:13 +01:00
tsconfig.json Initialize project using Create React App 2025年07月15日 16:39:54 +00:00

Sainsbury's SmartShop React App

unfinished. i realised that CORS and HTTP preflights make this useless without proxying requests[1]. and i don't want proxying of requests to be necessary, so i'm going to make a native android app later instead. wish me luck learning kotlin at the same time!

i'm only dumping the code so i can clone it on my phone later and show some people on the shop floor :>

the code is quite messy as i lack react and javascript/typescript experience, but i may clean it up so it's abandoned in a good state.

[1] when sending cross origin requests to the smartshop API, apparently a preflight/OPTIONS request is required by the browser, which omits the authorization header. the API fails the preflight request due to lack of authorization (that i can't even send because it's a preflight) causing the entire operation to fail :(

features

this only has the in-store search feature. it's the thing that pushed me to make this, so it's the only feature and basic shopping stuff isn't implemented.

how to use

npm start - you must use it this way, so that the dev server proxies requests for reasons explained above.