Git Product home page Git Product logo

bin's Introduction

BIN is a lightweight frontend framework, follow the KISS principle. Easy but Powerful. It can be used to develop moble app, web app and even desktop app.

Features

  • Only required HTML,CSS,JavaScript skills
  • Object oriented and Triditional GUI application oriented development pattern
  • MVVM feature(based on Vue 1.0)
  • Basic components for mobile and pc
  • Build-in router feature, view stack management for mobile spa
  • Client side http api mock
  • App shell feature
  • Basic data persistence feature

Hello World

A simple mobile SPA build with BIN. It's a template project, use bitnow init <project-name> spa to generate your project from this template project.
source code

A simple mobile MPA build with BIN. It's a template project, use bitnow init <project-name> mpa to generate your project from this template project.
source code

A simple PC SPA build with BIN. It's a template project, use bitnow init <project-name> pcspa to generate your project from this template project.
source code

How to use

you can use the bitnow-cli to generate project from available template.

Install bitnow-cli

$ npm install -g bitnow-cli

Generate project from template

$ bitnow init <project-name> [template-name]

Run the project

BIN is base on AMD to manage modules, so there is no need to compile and build for development. But on the other side, BIN does't use npm to handle dependencies. cd to project dir and then:

$ npm start

Build the project

Build project for production. Bundle the framework, add version informations ...

$ npm run build

or

$ npm run build-start

List available template

$ bitnow list

Update to the latest framework

The whole source code of framework comes to bin directory.

$ bitnow update

Auto generate code

bitnow-cli provides some useful view templates to generate the base view code.

Create view code

$ bitnow view create <view-path> [template-name]

the view-path is based on you current path, so index will create index.html and index.js in current path, and login/index will create index.html and index.js in ./login, the parent path will be created by cli if not exists.
In BIN, each view consists of two files: .html describes the structure and appearance, .js describes the logic of business and the ViewModel links them together. So it's more close to traditional web development and even close to traditional GUI application development.

List available view template

$ bitnow view list

Description

  • bin : framework code
  • config : config files
  • index-spa.html : boot index file for SPA
  • index-web.html : boot index file for web

LICENSE

MIT

bin's People

Contributors

builditnow avatar 461928215 avatar flyerjay avatar santiago0412 avatar

Watchers

James Cloos avatar startLong 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.