Code Monkey home page Code Monkey logo

simplesite's Introduction

Simplesite

A boilerplate .php + .js site framework with friendly URLs, pushState support and SEO-friendliness

Features:

  • Server-side rendering that switches to fetch() requests (and pushState URL updates) after initial load
  • Automatic connection & disposal of Javascript views to main html content
  • Automatic js & css includes that mirror the compiled minified Gulp build
    • This allows easy switching between dev & production modes, and easy dropping in of new js/css files
    • ...but has the caveat of all js/css directories being included in alphabetical order, with simplesite core files included first
    • The main app.es6.js example ensures that it's not initialized until all scripts are loaded, so we should be good in this regard of .js load order
  • Per-page overrides of head metadata, with robust defaults and automatic content extraction to prefill metadata per-page
  • Basic login authentication for protected pages
  • Basic CMS functionality examples
  • Image lazy-loading

Setup to use Gulp for minifying css/js)

run gulp-init.sh

Push to your new repo

  • git push -u origin master

Special functions

  • Add ?notDev to load production js/css

TODO

  • Figure out Rollup in Gulp for minimized module-based compiling: https://rollupjs.org/guide/en/
    • Look at terser and/or esbuild
  • Extract main nav css/js to make it more modular
  • Static publishing
    • How to handle links between pages? Is this already handled?
    • Can AreaModel handle loading an entire static page and just pull out the content area?
  • Push loader over if nav drawer is showing
  • Add Embetter demo
  • Make uploader a legit class & replace "demodesk" view
  • Fix square thumbnail in news-listing-view - make it a css responsibility w/section/subsection classes added to body
    • news-listing-view should be in the client implementation, not the core
  • Bring back in:
    • Config CMS demo w/grid & config card
  • Fix embetter, ShareOut, CacheCart
  • Remove Mail.php
  • [DONE?] Add ability to create cached responses in AreaModel so we can get pushState and content swapping without hitting the server again
  • support multiple layouts?
  • Check entires: https://github.com/joshbuchea/HEAD
  • Remember scroll position when going back?

Maybe?

  • Add paging into RSS view
  • Add /rss to any page to retrieve rss data source?
  • Look at - it's not ready yet

Sites using SimpleSite

  • cacheflowe.com
  • ohheckyeah.com
  • lazwicky.com
  • frakefineart.com
  • DBG CMS
  • Nike projects

simplesite's People

Contributors

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