https://github.com/davewm/purescript-news-app
An example news app written in PureScript
https://github.com/davewm/purescript-news-app
purescript pux
Last synced: 5 months ago
JSON representation
An example news app written in PureScript
- Host: GitHub
- URL: https://github.com/davewm/purescript-news-app
- Owner: DaveWM
- License: bsd-3-clause
- Created: 2019-03-27T21:28:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T21:29:19.000Z (about 7 years ago)
- Last Synced: 2025-05-24T07:39:16.649Z (about 1 year ago)
- Topics: purescript, pux
- Language: PureScript
- Homepage: https://jovial-neumann-82df07.netlify.com
- Size: 2.04 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: support/entry.js
Awesome Lists containing this project
README
# purescript-news-app
## Installation
Clone the repository and run `npm install` to get started:
```sh
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.