Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have backend written in Haskell and frontend with Javascript?

currently I'm working on this project (https://github.com/Giegling/addressbook) and for the backend I use Node.js with Express framework, for the frontend Angularjs. Is it possible to "translate" the backend to Haskell without touching the frontend? If it's possible, which framework should I use? (Yesod, scotty...)

Thanks

like image 411
Messing Avatar asked Feb 09 '23 06:02

Messing


1 Answers

Your server simply exposes a HTTP API to your angular app. You can implement that functionality in any web framework (or even without a framework) in pretty much any language.

Yesod is probably the most popular and well documented Haskell framework (personal opinion), so I guess you can start with that.

like image 101
ralh Avatar answered Feb 12 '23 00:02

ralh