Skip to content

Latest commit

 

History

History
58 lines (32 loc) · 1.26 KB

getting-started.md

File metadata and controls

58 lines (32 loc) · 1.26 KB

Getting Started with Mootor

1. Download

https://github.com/emi420/Mootor/blob/master/dist/mootor-beta-v0.1.zip?raw=true

You must run the app on a webserver, for example:

2. Edit

New views

1.Create the files
  • views/my-view/my-view.html HTML content for the view
  • views/my-view/my-view.css CSS styles for the view
  • views/my-view/my-view.js JavaScript code for the view

The scripting of this view will be on views/my-view/my-view.js , for example:

m.app.view("my-view").on("load", function() {
    // code here
});
2.Add view on app init
var app = m.app({
    views: [
        "index",
        "my-view",
3.Add a route
app.route("^#my-view$", app.view("my-view"));

Now you can load the view on the browser, for example:

http://localhost/mootor-app/#my-view

Read the docs

UI Components

https://github.com/emi420/Mootor/blob/master/doc-ui.md

JavaScript

https://github.com/emi420/Mootor/blob/master/doc-js.md

Angular

You can implement a Mootor app with Angular, check out this example:

https://github.com/emi420/Mootor/tree/master/examples/angular