A PureScript + Halogen codebase containing real world examples (CRUD, auth, design patterns, routing, pagination, etc) that adheres to the RealWorld spec and API.
Use the impl
branch to track current progress on the guide and implementation
- Read the guide to learn about the design of this app and how to build your own Halogen applications.
- Check out the RealWorld project for more information on how to use this with various backends and compare it to other frameworks.
Note: This project is a work-in-progress! Please feel free to open issues, critique the guide, offer advice, or even implement part of the application.
To get the frontend running locally:
# Install dependencies via NPM and Bower
yarn
# Build the project (alternately, use `npm run build`)
yarn build
# Run a local API server (alternately, use `npm run start`)
yarn start
This example application is a social blogging site (ie. a Medium.com clone) called "Conduit". It uses a custom API for all requests, including authentication.
General functionality
- Authenticate users
- CRU* users (with a signup and settings page, no deletion required)
- CRUD articles
- CR*D comments on articles (no updating required)
- GET and display paginated lists of articles
- Favorite articles
- Follow other users
Site structure overview
- Home page |
/#/
- List of tags
- List of articles pulled from either "Feed", "Global", or by "Tag"
- Pagination for list of articles
- Sign up / sign in pages |
/#/login
,/#/register
- Use JWT, storing the token in local storage
- Settings page |
/#/settings
- Editor page to create / edit articles |
/#/editor
,/#/editor/article-slug
- Article page |
/#/article/article-slug
- Delete article button (only shown to article author)
- Render markdown from server client side
- Comment section at bottom of page
- Delete comment button (only shown to comment author)
- Profile page |
/#/@username
,/#/@username/favorites
- Show basic user info
- List of articles populated from author's created or favorited articles