This is the start of re-writing the front-end page by page. First step is to provide a Express server (see front-ps/server/Main.purs) to serve each page. Each page will have a single JS entry point (which is a single JS file compiled from PS). This JS will be included by Express in a page. ~so that we can render different pages with the same EJS template (see front-ps/public/views/layout.ejs)~
UPDATE (26th August):
Extract modules into folders common|client|server
Add Pux example app of category-detail page (still in progress)
Use webpack (for bundling client-side only)
UPDATE 27th August:
Add server-side rendering for category-detail page
Add Pux example app for category-overview (incl. server-side rendering)
This is the start of re-writing the front-end page by page. First step is to provide a
Express
server (seefront-ps/server/Main.purs
) to serve each page. Each page will have a singleJS
entry point (which is a singleJS
file compiled fromPS
). ThisJS
will be included byExpress
in a page. ~so that we can render different pages with the sameEJS
template (seefront-ps/public/views/layout.ejs
)~UPDATE (26th August):
common|client|server
Pux
example app ofcategory-detail
page (still in progress)webpack
(for bundling client-side only)UPDATE 27th August:
Pux
example app for category-overview (incl. server-side rendering)webpack
for bundling server-side as well