• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language PureScript
  • License
    BSD 3-Clause "New...
  • Created almost 9 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Starter Pux app w/ hot-reloading and isomorphic routing and rendering

pux-starter-app

The starter app is a skeleton Pux project configured with webpack and supporting hot-reload for rapid development.

For isomorphic rendering and routing a more complex configuration is available in the isomorphic branch.

Installation

Clone the repository and run npm install to get started:

git clone git://github.com/alexmingoia/pux-starter-app.git my-awesome-pux-app
cd my-awesome-pux-app
npm install
npm start

After compiling the app should be available at http://localhost:8080.

Directory structure

  • src: Application source code.
    • src/App/Config.js: Configuration values.
    • src/App/Config.purs: Configuration type.
    • src/App/Events.purs: Application event type and foldp function.
    • src/App/Routes.purs: Routes.
    • src/App/State.purs: Application state type and init function.
    • src/App/View/Homepage.purs: Home page.
    • src/App/View/Layout.purs: App layout.
    • src/App/View/NotFound.purs: 404 page.
    • src/Main.purs: PureScript entry point.
  • static: Static files served with application.
  • support: Support files for building.
    • support/entry.js: Webpack entry point. Handles hot reloading.
  • bower.json: Bower package configuration.
  • package.json: Node package configuration.
  • webpack.config.js: Webpack configuration.

NPM scripts

watch

npm start or npm run watch will start a development server, which hot-reloads your application when sources changes.

serve

NODE_ENV=production npm run serve builds your application and starts a production server.

build

npm run build builds application client and server bundles.

More Repositories

1

purescript-pux

Build type-safe web apps with PureScript.
PureScript
566
star
2

sticky

Simple, key/value pair browser-storage cache leveraging the latest HTML5 storage APIs.
JavaScript
324
star
3

jsx-transform

JSX transpiler. A standard and configurable implementation of JSX decoupled from React.
JavaScript
293
star
4

koa-resource-router

RESTful rails-style resource routing for koa
JavaScript
147
star
5

twain

Tiny web application framework for WAI.
Haskell
66
star
6

pux-devtool

Pux time-travelling devtool.
JavaScript
43
star
7

gulp-file

Create vinyl files from a string or buffer and insert into the Gulp pipeline.
JavaScript
42
star
8

mongoose-populate-virtuals

Extend Mongoose 4+ population with virtual attributes that can be populated in either direction.
JavaScript
33
star
9

virtual-dom-component

A virtual component (view). Virtual components expose events, state lens, and a render function.
JavaScript
30
star
10

virtual-dom-stringify

Deprecated. Use https://github.com/nthtran/vdom-to-html/.
JavaScript
25
star
11

html-virtualize

Parse HTML into virtual-dom tree.
JavaScript
20
star
12

gulp-jsx

virtual-dom-jsx for gulp
JavaScript
14
star
13

pux-todomvc

Pux TodoMVC
PureScript
13
star
14

express-elasticsearch-logger

Log requests to ElasticSearch.
JavaScript
12
star
15

modella-resource

Expose Modella models via RESTful resource middleware.
JavaScript
10
star
16

watch

Watch files and folders for changes, and run commands when they change. Linux, OS X, and Windows are supported.
Go
8
star
17

hyperobject

A simple object model for working with Linked Data.
JavaScript
7
star
18

dotfiles

My OS X setup using Nu shell and Helix editor.
Nushell
7
star
19

pux-css

Render purescript-css to a Pux attribute.
PureScript
5
star
20

modella-mysql

MySQL plugin for Modella.
JavaScript
4
star
21

mongoose-express-router

Create Express 4 router and middleware from Mongoose 4 model.
JavaScript
4
star
22

charisi

A rich text editor for the web, built for speed and stability
JavaScript
3
star
23

purescript-markdown-smolder

Render purescript-markdown to purescript-smolder.
PureScript
3
star
24

webmention

Types and functions for working with webmentions.
Haskell
3
star
25

pux-websockets

PureScript
3
star
26

wai-responder

A tiny web application framework for WAI.
Haskell
2
star
27

modella-memory

Memory persistence layer for Modella. Useful for development or as a reference implementation for Modella storage plugins.
JavaScript
2
star
28

express-snapshot

Generate static HTML from Express. Express app in, static .html out.
JavaScript
2
star
29

zero.css

Classy style without classes
CSS
1
star
30

daily-standup

Command-line tool for posting what you did today and the GitHub commits from yesterday to HipChat.
JavaScript
1
star