Giter Site home page Giter Site logo

yangwonlohengramm / hello-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ufront/hello

0.0 2.0 0.0 59 KB

"Hello World" example for websites / web-apps built using Ufront - a Web Framework for Haxe.

Haxe 36.73% ApacheConf 8.35% PHP 7.63% HTML 47.28%

hello-1's Introduction

A Clean, Blazing-Fast "Hello World" for Ufront Build Status

A simple example of Ufront running on the client and the server.

If you are unable to understand the example, please feel free to ask our community on one of our community channels like gitter.

Our example is intentionally small. It exists in order to display the process of:

  • Setting up an app to run on both the server and the client.
  • Using a controller to respond to link clicks and form submits.
  • Returning a ViewResult using the built in haxe.Template templating system.

There's obviously a lot more to Ufront, but this is supposed to be a very simple example. For more comprehensive guides, you can visit the ufront-nodejs-guide

Viewing it online

We'll try make the example viewable online soon.

Installation

Currently you need to use the development version of haxelib, so these instructions are a little longer than normal. This will be simplified when we release a new haxelib version.

# Install the Ufront libraries and dependencies
haxelib install ufront
haxelib install ufront-client

# Clone and set up the development version of Ufront
git clone --recursive https://github.com/ufront/ufront.git
cd ufront
./setupDev

# Setup ufront shortcut
haxelib run ufront --setup

# Build both "server.hxml" and "client.hxml"
cd submodules/hello
ufront build            # Or shorter, `ufront b`

# To test neko, run a temporary server:
ufront server           # Or shorter, `ufront s`

# Run a temporary server (PHP)
cd www
php -S localhost:2987

# To run the NodeJS server:
cd www
node server.js

Support

This has been tested and works server side with:

  • Server-side:
    • PHP
    • Neko
    • JS (Node)
  • Client-side:
    • JS (Browser)

All testing is done with Haxe 3.2.

Please report bugs here: https://github.com/ufront/hello/issues

If you have general Ufront support questions, post to Stack Overflow and tag the question ufront.

Contributions

Pull requests and contributions welcome:

  • For the code, if you have an improvement, or a bug fix.
  • For the comments in the code - if something is confusing and could do with some comments to explain what is going on.
  • For this README and/or any other documentation.

If anyone provides a good pull request and shows they're trustworthy, I'm happy to give commit access too!

hello-1's People

Contributors

andyli avatar jasononeil avatar kevinresol avatar npretto avatar yangwonlohengramm 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.