All Projects → srghma → purescript-halogen-nextjs

srghma / purescript-halogen-nextjs

Licence: other
not finished, was working on commit where I have added image to README

Programming Languages

purescript
368 projects
PLpgSQL
1095 projects
Nix
1067 projects
javascript
184084 projects - #8 most used programming language
haskell
3896 projects
shell
77523 projects

Labels

Projects that are alternatives of or similar to purescript-halogen-nextjs

get subscribe
✈️ 免费机场 / 免费VPN -> 自动获取免 clash/v2ray/trojan/sr/ssr 订阅链接,间隔12小时持续更新 | 科学上网 | 翻墙
Stars: ✭ 1,512 (+5500%)
Mutual labels:  ssr
jooger.me
👍 My personal website,powered by @nuxt
Stars: ✭ 39 (+44.44%)
Mutual labels:  ssr
template
Elder.js template project. It is part template, part tutorial. Dive in!
Stars: ✭ 101 (+274.07%)
Mutual labels:  ssr
freyja
A fast blog system
Stars: ✭ 16 (-40.74%)
Mutual labels:  ssr
vpn
VPN软件(小三VPN),完全免费,不注册,不限速,不限流,不看广告不流氓
Stars: ✭ 360 (+1233.33%)
Mutual labels:  ssr
SSRR-Bash
个人自制SSR一键脚本
Stars: ✭ 22 (-18.52%)
Mutual labels:  ssr
vue-ssr-starter
Starter kit for projects with Webpack 4, Vue 2 and SSR
Stars: ✭ 53 (+96.3%)
Mutual labels:  ssr
react-enterprise-starter-kit
Highly Scalable Awesome React Starter Kit for an enterprise application with a very easy maintainable codebase. 🔥
Stars: ✭ 55 (+103.7%)
Mutual labels:  ssr
next-ts-graphql-apollo-starter
An opiniated Next powered starter which include support for Apollo with GraphQL SSR support, codegen, styled component / system, framer motion and Cypress
Stars: ✭ 18 (-33.33%)
Mutual labels:  ssr
exalt
A JavaScript framework for building universal apps.
Stars: ✭ 54 (+100%)
Mutual labels:  ssr
postonents
React meets Emails | ⚛️ x 📧= 🔥
Stars: ✭ 90 (+233.33%)
Mutual labels:  ssr
nx-ng-nest-universal
Nx Workspace with a seperated Nest App for Angular Universal SSR.
Stars: ✭ 32 (+18.52%)
Mutual labels:  ssr
Geek Blog
基于Vue+Nuxt.js服务器渲染(SSR)搭建的个人博客系统
Stars: ✭ 33 (+22.22%)
Mutual labels:  ssr
vuepress-theme-minimalism
minimalism vuepress theme
Stars: ✭ 19 (-29.63%)
Mutual labels:  ssr
shici
使用 next.js 与 graphql 做一个诗词小站
Stars: ✭ 79 (+192.59%)
Mutual labels:  ssr
giog
It's based on githud issues and built with Vue 2.x, vue-router & vuex with server-side rendering by koa
Stars: ✭ 14 (-48.15%)
Mutual labels:  ssr
blazingly-ssr
A blazing fast server side rendering & project optimiser cli tool using Parcel (POC/Experiment)
Stars: ✭ 41 (+51.85%)
Mutual labels:  ssr
SSPanel Uim port offset
SSPanel Uim 端口偏移及教程
Stars: ✭ 30 (+11.11%)
Mutual labels:  ssr
noov.js
📦 noov.js for react ssr solution
Stars: ✭ 18 (-33.33%)
Mutual labels:  ssr
egg-view-vue-ssr
Egg Vue Server Side Render (SSR) Plugin
Stars: ✭ 90 (+233.33%)
Mutual labels:  ssr
link-purescript-project $HOME/projects/purescript-halogen-nextjs hyper TO="$HOME/projects/hyper"
link-purescript-project $HOME/projects/purescript-halogen-nextjs halogen-material-components-web

nix-shell-with-gc

./regenerate-graphql-api-purs-codegen.sh && ./regenerate-purs-files.sh

drmaci \
  && dev__db__drop \
  && dev__up_detach \
  && ./gen-migrations.hs \
  && dev__db__migrate \
  && dev__db__dump_schema \
  && ./gen-job-ids-from-migrations.hs \
  && ./gen-api-server-exceptions-from-migrations.hs \
  && dev__db_tests \
  && dev__api_server

# or
drmaci && dev__db__drop && dev__up_detach && dev__db__migrate && dev__db__dump_schema && dev__api_server
# or
drmaci && dev__up_detach && dev__api_server

# dev__db__tests

./regenerate-graphql-api-purs-codegen.sh

./gen-error-ids.hs

yarn dev:spago && yarn dev

dev__feature_tests__run_chromedriver
dev__feature_tests__run

purescript-halogen-nextjs

A server side rendering framework for purescript-halogen, like next.js is a framework for react, written fully in purescript.

It is using not yet published features/packages:

Features:

  1. js and css is split per page using webpack machinery
  2. when Nextjs.Lib.Link.component appears in the viewport - the page dependencies are prefetched
  3. on initial rendering the Nextjs.Lib.PageSpecBoxed.PageData__Dynamic is fetched on server side and result in inserted into the page into the <script id="__PAGE_DATA__">JSON<script>

How it works

  1. How to run it?
yarn dev

or

yarn build && yarn serve
  1. Where pages are stored?

PageSpecBoxed is a top level purescript file in the packages/client/pages directory (e.g. packages/client/pages/Foo.purs)

PageSpecBoxed should export the page :: PageSpecBoxed object (which is a PageSpec object, but with existentially hidden input type argument)

  1. What is a meaning of .deps.js files?

If there is a file in the packages/client/pages/ directory ending with .deps.js (e.g. packages/client/pages/Foo.deps.js) - it will be required before the page is loaded

(Check createClientPagesEntrypoints.js and isomorphic-client-pages-loader to see how it works)

You can use packages/client/pages/Foo.deps.js to add per page css files (it's just for splitting css, the css is global, i.e. the <link rel="stylesheet" ...> element is not removed after you go to the some other page)

Or You can use it for adding per page js dependencies (like ace npm package, that will be loaded only for Ace.purs page)

  1. Where can I define global css and js?

In the client.entry.css and client.entry.js

TODO:

example

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].