Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Back To Js - Core


A framework to help us to back the time in which javascript was simple, intuitive and without insane concepts.

Just html + javascript

Features

  • Pure html. Forgot alien tags or attributes:
    • <App> <MuiThemeProvider> <app-navigation> *ngIf="!authService.isLoggedIn()" <Drawer open containerStyle={{ position: null }}>
  • Just your web code. Forgot alien files .babelrc .eslintrc tslint.json .etc
  • Annotations like java or c#
  • Dependency Injection
  • Automatic actionable elements detection
  • Automatic router binding
  • Compatible with any fucking javascript framework in the world

Demo

Check the first demo:

How it works?

Just install the tool, create the project, add your js and run it

Install

Install the tool

npm install -g github:/backtojs/backtojs-core

Create new project

backtojs --new-project acme
cd ./acme

Add your html

/src/pages/HelloWorld.html

[HelloWorld]
<h1>Hello World Example</h1>
<p>This is a very basic "Hello World" example made up in HTML and CSS</p>

Add your controller

/src/controllers/HelloWorldController.js

[Controller(entrypoint="true")]
function HelloWorldController() {

  [Autowire(name="HelloWorld")]
  this.page;

  [OnLoad]
  this.onLoad = () => {
    console.log("onLoad: Hello World!!");
  };

  [Render]
  this.render = () => {
    return this.page.getHtml();
  };

}

module.exports = HelloWorldController;

Start as dev

npm run dev

Go to http://localhost:1308

Documentation

  • coming soon

Samples

  • coming soon

Acknowledgments

Contributors


jrichardsz

About

A JavaScript framework for creating web applications in an fast, simple and intuitive way focus on productivity inspired in swing, spring and my beloved java.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages