Coder Social home page Coder Social logo

khadorkin / apprun-realworld-example-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gothinkster/apprun-realworld-example-app

0.0 3.0 0.0 718 KB

Exemplary real world application built with AppRun

Home Page: https://github.com/yysun/apprun

HTML 3.17% TypeScript 95.80% JavaScript 1.03%

apprun-realworld-example-app's Introduction

RealWorld Example App

AppRun codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

This codebase was created to demonstrate application frontend built with AppRun including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the RealWorld community style guides & best practices.

This codebase has about 1100 lines of source code that can be gziped to 18K.

General functionality

  • Authenticate users via JWT (login/signup pages + logout button)
  • CRU* users (sign up & settings page - no deleting required)
  • CRUD Articles
  • CR*D Comments on articles (no updating required)
  • GET and display paginated lists of articles
  • Favorite articles
  • Follow other users
  • Modal confirmation for deleting articles and comments

How it works

This RealWorld example application is built using AppRun components that implements the model-view-update architecture.

import app, { Component } from 'apprun';
class ArticleComponent extends Component{

  state = {}

  view = (state) => <div></div>

  update = {
    '#/article': async(state, slug) => {}
  }

}

Or use the on decorator

import app, { Component, on } from 'apprun';
class ArticleComponent extends Component{

  state = {}

  view = (state) => <div></div>

  @on('#/article') root =  async(state, slug) => {}

}

About AppRun

AppRun is a 3K library for developing applications using the elm style model-view-update architecture and event pub and sub pattern.

Applications built with AppRun have less line of code, smaller js file and better performance. See a comparision from A Real-World Comparison of Front-End Frameworks with Benchmarks.

AppRun has also joined the js-framework-benchmark project. You can see its performance results compared to other frameworks and libraries.

Following articles have more details of this application and AppRun.

Getting started

Pull requests are welcome.

License

MIT

Copyright (c) 2017 Yiyi Sun

apprun-realworld-example-app's People

Contributors

alonski avatar ericsimons avatar esakkiraj avatar optikfluffel avatar yysun avatar

Watchers

 avatar  avatar  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.