GithubHelp home page GithubHelp logo

tarsbase / purescript-halogen-realworld Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thomashoneyman/purescript-halogen-realworld

0.0 1.0 0.0 114 KB

[WIP] Exemplary real world application built with PureScript + Halogen

License: MIT License

PureScript 100.00%

purescript-halogen-realworld's Introduction

RealWorld Example App

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.

Getting started

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

How it works

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

purescript-halogen-realworld's People

Contributors

thomashoneyman avatar davezuch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.