Code Monkey home page Code Monkey logo

firefly's Introduction

Firefly Framework

Firefly framework is a high performance full-stack java web framework. It helps you create a java web application Easy and Quickly. It provides MVC framework with HTTP Server and many other useful components for developing web applications. That means you can easy deploy your web without any other java web containers, in short , it's containerless. It taps into the fullest potential of hardware using SEDA architecture, a highly customizable thread model.

Getting start

Running firefly is very easy, now you can download the dependency from Apache Central Repository, the pom is:

	<dependency>
      <groupId>com.fireflysource</groupId>
      <artifactId>firefly-common</artifactId>
      <version>3.0.4</version>
    </dependency>
    <dependency>
      <groupId>com.fireflysource</groupId>
      <artifactId>firefly-template</artifactId>
      <version>3.0.4</version>
    </dependency>
    <dependency>
      <groupId>com.fireflysource</groupId>
      <artifactId>firefly-nettool</artifactId>
      <version>3.0.4</version>
    </dependency>
    <dependency>
      <groupId>com.fireflysource</groupId>
      <artifactId>firefly</artifactId>
      <version>3.0.4</version>
    </dependency>

There are two ways to start a firefly application, building by maven, or just run it on eclipse simply.

Building by maven

  1. Clone firefly source code from Github.
  2. Find the demo project 'firefly-demo', modify the log path in firefly-log.properties, you can find it in 'firefly-demo/src/main/resources', in this case, you Must modify these two rows to your own location
firefly-system=INFO,/Users/qiupengtao/develop/logs
firefly-access=INFO,/Users/qiupengtao/develop/logs

When you have finished these operations above-mentioned, run maven command 'mvn test' and 'mvn compile', then run the class 'App' and visit the URL http://localhost:8080/index in your browser, you will see the 'Hello World'.

Running on eclipse

  1. Clone firefly source code from Github.
  2. Open Eclipse IDE and import the demo project - 'firefly-benchmark'
  3. Modify the log path in firefly-log.properties, you can find it in 'firefly-benchmark/src', in this case, you Must modify these two rows to your own location
firefly-system=INFO,/Users/qiupengtao/develop/logs
firefly-access=INFO,/Users/qiupengtao/develop/logs

When you have finished these operations above-mentioned, run the class 'Bootstrap' and visit the URL http://localhost:8080/ in your browser, you will see the 'Hello World'.

Notice: you Must use JDK in your IDE environment NOT JRE, because the firefly depends on Java Compiler API that isn't in JRE.

More details you can find in guide document

##Contact information E-mail: [email protected]
QQ Group: 126079579

firefly's People

Contributors

hypercube1024 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.