purescript / pursuit

Website for hosting and searching PureScript API documentation
https://pursuit.purescript.org/
Other
169 stars 47 forks source link

Reimplement as a server-side app #36

Closed paf31 closed 9 years ago

paf31 commented 9 years ago

/cc @hdgarrood

I would like to integrate Pursuit with psc-pages, and I think that this would be a good time to think about restructuring the app as a purely server-side app written in Haskell.

Right now, getting the entire app running is a little tricky, but I think we can simplify it. I would like to get to the point where one person can get the app running by simply cabal running it, and then hopefully increase the rate of development.

My proposal:

Any thoughts?

hdgarrood commented 9 years ago

So is the main motivation for this to simplify the architecture? I can certainly get behind that.

Could you go into a little bit more detail about the new database structure?

paf31 commented 9 years ago

Well, we could use something like Postgres, and I'm happy to set that up on the community server, but it's another headache from a dev standpoint when the data is so small.

So I suggest we put things in memory, and have the following "tables" (probably Maps and sorted lists, Data.Trie is probably overkill):

hdgarrood commented 9 years ago

Cool, sounds good to me. What about the UI? Do we just have a single search box that you type stuff in and it can give you back either packages, modules, or declarations as resuts?

paf31 commented 9 years ago

I was thinking of breaking it up into

hdgarrood commented 9 years ago

:+1:

Were you thinking of using Scotty? Also do you want to start this off, or shall I?

paf31 commented 9 years ago

Probably Scotty and blaze-html, just to keep things simple. I can put together a repo with the basics this evening if you like.

hdgarrood commented 9 years ago

Yep, sounds good!