GithubHelp home page GithubHelp logo

yerkopalma / frontend-stack-playground Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 26 KB

:trident: One step after vanilla javascript, one step before frameworks.

License: MIT License

JavaScript 60.88% CSS 34.09% HTML 5.03%

frontend-stack-playground's Introduction

frontend-stack-playground

๐Ÿ”ฑ One step after vanilla javascript, one step before frameworks.

Why?

I've got tired of js frameworks, so I will start to experiment with different js stacks. composing libraries is more fun than learning oppinionated frameworks. At the end, I would have the basic experience and maybe some benchmarking to make some decisions.

How?

If there are already a lot of js framework choices, there is even more js libraries. So, I arbitrary selected some of them and mixed in this repo, accross different project folders. Every folder is supposed to be the same app, only changing the js stacks, so, there are some common files. Also, there is only one folder for benchmarking, as the same test would be applied to every app.

The app

The app is a simple blog, with common css files. The state model must support posts with comments, and manage routes to visualize them. The routes are:

/posts
/posts/:post_id
/posts/:post_id/comments

The model structures are:

const post = {
  title: '',
  date: {},
  content: '',
  author: '',
  comments: []
}

const comment = {
  author: '',
  content: '',
  date: {}
}

The actions for the state container are:

const ADD_POST

Stacks

Go to each one of the following folders to check the implementations

License

MIT

frontend-stack-playground's People

Contributors

yerkopalma avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

frontend-stack-playground's Issues

Browser url and history not updating

Stack: yo-yo + sheetify + redux + sheet-router

Libraries versions (relevants only)

  • sheet-router: v4.0.3

Actual Behaviour

When navigating through the app, the dom content is updated properly, but there is no update in the location nor the history API.

Expected Behaviour

Navigating through the app should modify the browser route, and update the history API

Sheetify is not working

Stack: yo-yo + sheetify + redux + sheet-router

Libraries versions (relevants only)

  • sheetify: v5.1.1

Actual Behaviour

Loading global css scripts in this way

import sheetify from 'sheetify'

sheetify('style.css', { global: true })

result in this error

Uncaught TypeError: Cannot read property 'isFile' of undefined
    isFile                    @ sync.js:12
    loadAsFileSync            @ sync.js:36
    loadNodeModulesSync       @ sync.js:75
    module.exports            @ sync.js:27
    resolveSync               @ index.js:22
    sheetify                  @ index.js:30
    1.sheet-router            @ index.js [sm]:74
    s                         @ _prelude.js:1
    e                         @ _prelude.js:1
    (anonymous function)      @ _prelude.js:1

Expected Behaviour

The style should load correctly.

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.