Giter Site home page Giter Site logo

kitaboon / tiksi Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.59 MB

πŸ” A fullstack modern javascript framework πŸ–ΌπŸ“

License: MIT License

JavaScript 99.88% HTML 0.12%
fullstack-javascript framework-javascript remote-procedure-call fullstack-website nodejs

tiksi's Introduction

Tiksi JS

πŸ” A fullstack modern javascript framework πŸ–ΌπŸ“


The framework is based on MVC for project structure and RPC for communication between the server and the client.

Quick Start

For a new project, just clone this repository :

git clone https://github.com/TiksiJS/tiksi.git

Now you should have these directories in your project folder :

  • controllers
  • lib
  • src
  • views
  • etc ...

To run our server, run the command run in the cli.js :

node cli.js run

Now, you should see in your console the message :

Server listening to port 8000, http://localhost:8000/ 

http://localhost:8000/ :

Why do you see Hello tiksi ! ?

Because when the router receive "/", in the file routes.json, it is defined that he must display the HomeController.index :

{
    "home": {
        "path": "/",
        "controller": "HomeController.index",
        "view": "HomeView"
    }
}

Where is the HomeController.index ?

Just here, in controllers/HomeController.js :

exports.HomeController = {
    index() {
        return {
            name: 'tiksi'
        };
    }
};

Here, we say that when the server call the function index(), he get the data

name: 'tiksi'

Wait, where is the Hello in front of tiksi ?!

The hello is a member of the view : he is just here for diplay, so it's defined in the views/HomeView :

Hello {{ name }} ! Welcome to the HomeView view.

The views are defined in twig. In twig, to display a variable, you must do {{ variable name }}

Voila ! You have now a server running on tiksi based on mvc structure !

What's next ?

Go to Wiki tab andd read about the backend (RPC system ) or about the proxy and enjoy !

tiksi's People

Contributors

kitaboon avatar

Watchers

 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.