| public | goodbye | |
| src | goodbye | |
| .gitignore | Initialize project using Create React App | |
| package-lock.json | Initialize project using Create React App | |
| package.json | goodbye | |
| README.md | goodbye | |
| tsconfig.json | Initialize project using Create React App | |
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.