DEV Community

Discussion on: Make websites work offline - Offline Storage. Making IndexedDB the Hero!

Collapse
 
trancephorm profile image
pyc

As far as I understand, this code runs in Node.js, and every time npm start command is issued, parcel compiles it for web browser, so IndexedDB API is available (it's pure web browser Javascript code, not Node.js environment). Now what bugs me is that in files supplied at Codesandbox, I haven't found any of the code displayed here in this tutorial. Where that code should be placed? This seem to be the only way that you can compile code for browser on the fly, every time it runs?

I'm n00b, I know the question may seem stupid but please enlighten me :)