Giter VIP home page Giter VIP logo

black-mirroir's Introduction

Black Mirroir

Used on many projects at ultranoir before React/Vue was cool

minimalist MV framework that manages application state, inspired by bigwheel framework and based on handpicked npm packages : browserify - gulp - page.js - handlebars / mustache - GSAP โ€ฆ

upon route change :

  • current view exit : animateOut then remove the view DOM container
  • next view enter : loadData (JSON), compileTemplate, ready, preload, animateIn

Rendering is done client side at the moment but allows direct url access. TODO : server-side rendering
generate static html files during build process, and/or use Mustache templates shared between PHP & Js, enabling server + client side rendering without duplication.

Getting Started

  1. Duplicate sources and rename folder.

  2. Edit .htaccess RewriteBase to your project folder on line 34

RewriteBase /YourProjectFolder/

  1. Edit assets/js/app.js _ROOT to your project folder on line 5

window._ROOT = '/YourProjectFolder/';

  1. Open Terminal and navigate to the project (from finder, drag and drop folder onto terminal application icon). Install project depencies as listed in package.json (requires node and npm to be installed)

npm install

  1. Run Gulp to do a first build and to launch watchify (instructions listed in gulpfile.js)

gulp

  1. Open your project in a browser.

  2. Edit any files, and the watchify should rebuild the project automatically (assets/js/bundle.js). If gulpfile.js edited, cancel the process in terminal and relaunch it

ctrl + c gulp

black-mirroir's People

Contributors

gordonnl avatar prisme avatar

Watchers

 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.