I just tried building the web hosting manger with mock routing and it doesn’t work sadly… Followed the instructions to the letter, including using the exact Node version recommended. It gets stuck in an endless loop of this…
Greatly appreciate the inclusion of a mock build for SAFE Browser! I am not sure if I am doing something horribly wrong on my end, but I have always had a lot of trouble building the applications for myself.
That’ll depend on your mock vault, @SAFE-FS . Currently this is stored in a tmp folder, so if you reboot your comp (I think… depends on your OS probably), the mock vault would be cleared and you’d need to create a new account.
Vijay here. After I have downloaded the latest version browser and trying to use. It looks like I got to create account. Even after restarting am having the same issue.
For the Alpha versions it’s probably fine to have a separate mockup setup to simulate the network, but in Beta that will be too much of extra trouble for many app developers I think.
I would like to have a web browser that can simulate the network locally and where I can register several user accounts for testing.
Hey @joshuef,
Running the very latest mock build. Checked the sha’s to make doubly sure everything is okay. I am on macOS 10.13.1, the very latest.
I have been using the mock browser for a while now, A mock web hosting manger is something I have never been able to successfully build myself. (Just never seems to function fully/properly). I downloaded the linked mock build that @Krishna_Kumar posted and that does appear to work fine!
As far as I understand, please correct me if I am wrong, for it to work properly I have to run the app packaged in order for it to properly authenticate with the browser?
When I run yarn dev, I get these nasty errors… This is after removing node_modules and running a clean build just now.
Clicking the ‘simulate mock response’ button does nothing.
The whole reason I am interested in getting this working is because I am building my own Electron app, web manager and email client really are the only two good resources for seeing how to use the Node api. So obviously it would be ideal if I could build them to check that everything is working and to play about with them.
Aha, so those errors are as you don’t have the correct version of the client libs installed.
When you’re installing your node_modules fresh, be sure that you have NODE_ENV set to dev.
Also, just FYI, you don’t have to have webhosting to test sites against mock. Just in case you missed it, there’s more about that here: SAFE Browser v0.8.0 - Release - #17 by nice
Hmm, no that should do it if you have that exported for when you yarn. Strange. Maybe try a yarn --force just in case (it forces to redownload deps). But there’s nothing overtly wrong there then…
I’ll try locally doing a rebuild etc and check that we’re not missing a step in the docs. (I’m also on latest osx).
We’ve built the Decorum wallet using Vue and Webpack with it. It’s great to immediately see the effects of what you’re editing in the browser. Using Vue it doesn’t even reload the whole app, but just the component you’re working on.
Okay, i have the same err here, we’re missing the yarn rebuild step! If you run that (you shouldn’t need to re yarn) and then yarn dev, that’ll be it (hopefully).