Coder Social home page Coder Social logo

hytracer / es4x Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reactiverse/es4x

0.0 1.0 0.0 22.15 MB

๐Ÿš€ fast JavaScript 4 Eclipse Vert.x

Home Page: https://reactiverse.io/es4x/

License: Apache License 2.0

Java 87.04% JavaScript 11.26% Shell 0.83% Dockerfile 0.35% Batchfile 0.37% TypeScript 0.14%

es4x's Introduction

ES4X

This is the EcmaScript (5.1+) language support for Eclipse Vert.x

Build Status Join the chat at https://gitter.im/es4x/Lobby Security Status

Why?

10 things I've learned making the fastest JS runtime in the world

JavaScript is fast, and this is the way to make it even faster ๐Ÿš€๐Ÿš€๐Ÿš€

Usage

# add es4x-pm globally
npm install -g es4x-pm

Create a project:

# create a generic project
mkdir my-app
cd my-app
# init the project
es4x init
# add other dependencies...
npm install @vertx/unit --save-dev
npm install @vertx/core --save-prod
# will trigger the download
# of the java dependencies
npm install

Create your index.js:

/// <reference types="es4x" />
// @ts-check

vertx
  .createHttpServer()
  .requestHandler(function (req) {
    req.response().end("Hello!");
  })
  .listen(8080);

console.log('Server listening at: http://localhost:8080/');

and your index.test.js:

import { TestSuite } from '@vertx/unit';

const suite = TestSuite.create("the_test_suite");

suite.test("my_test_case", function (context) {
  var s = "value";
  context.assertEquals("value", s);
});

suite.run();
npm start

Profit!

Documentation

For more documentation please see docs.

es4x's People

Contributors

cbonnissent avatar cgmtr avatar chengenzhao avatar daihy8759 avatar dependabot-preview[bot] avatar dependabot-support avatar elaatifi avatar fantasy0v0 avatar fofofofoxier avatar gitter-badger avatar laiweiwei avatar mackiejimperial avatar megathrone avatar okou19900722 avatar pmlopes avatar sdnetwork avatar thomasperkins1123 avatar travisgalloway avatar vincentfree avatar vmfunc avatar zhbotong 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.