mithril.js icon indicating copy to clipboard operation
mithril.js copied to clipboard

Fix `m.request` example on home page

Open StephanHoyer opened this issue 3 years ago • 7 comments

The last Example does not work, I think because of CORS. We should fix that.

StephanHoyer avatar Dec 09 '22 06:12 StephanHoyer

rem-rest-api.herokuapp.com is gone. All ajax examples don't work anymore.

DerFichtl avatar Jan 13 '23 11:01 DerFichtl

Can confirm the endpoint is down.

dead-claudia avatar Jan 13 '23 11:01 dead-claudia

Thanks for the heads up, it was discussed in the chat, I hadn't seen this issue...

I think Heroku retired the free tier, and Leo understandably let REM disappear.

A possible solution would be to emulate the API using a service worker. If anyone feels like writing that it would be most welcome.

pygy avatar Jan 13 '23 11:01 pygy

There's also a dead link to brick.mozilla.io in .//docs/hyperscript.md

I'm removing these links from the WIP docs for the linter to pass, and mark this bug as critical so that we don't forget fixing it before the release.

pygy avatar Jan 24 '23 14:01 pygy

In the simple application example it refers to "bin/app.js" which webpack right now generates a "bin/main.js"

I'm halfway through but I am currently using https://jsonplaceholder.typicode.com/users which works for the beginnings but I will probably get issues with POST and such...

It does require changing the user display to fullname instead of first-name + " "+lastname

Oneted11 avatar Jan 31 '23 05:01 Oneted11

@pygy Seems that project was archived years ago: https://github.com/mozbrick/brick (though oddly its subrepos weren't).

dead-claudia avatar Feb 07 '23 06:02 dead-claudia

Would it be fine to use some free public fake API like https://jsonplaceholder.typicode.com for now? Broken example on the main page surely isn't good for bringing new users.

EtiamNullam avatar Aug 17 '23 12:08 EtiamNullam