Git Product home page Git Product logo

blade's Introduction

Build Status release @biezhi on weibo

δΈ­ζ–‡

What Is Blade?

blade is a lightweight MVC framework. It is based on the principles of simplicity and elegance. If you like it, can be Star and Fork, thanks!

Features

  • Lightweight. The code is simple and structure is clear
  • Modular (you can choose which components to use)
  • Support plug-in extension mechanism
  • Restful style routing interface
  • Multiple configuration files support (currently properties, json and coding)
  • Eembed jetty server and template engine support
  • Support jdk1.6 or higher version

Overview

  • Simplicity. The design is simple, easy to understand and doesn't introduce many layers between you and the standard library. It is a goal of the project that users should be able to understand the whole framework in a single day.
  • Elegance. blade Support the REST style routing interface, provide DSL grammar to write, no invasive interceptors.

Getting started

To get started, first include the Blade library and then create a class with a main method like this:

public class App extends Bootstrap {
	
	@Override
	public void init() {}
	
	public static void main(String[] args) throws Exception {
		Blade blade = Blade.me();
		blade.get("/").run(request, response) -> {
			response.html("<h1>Hello blade!</h1>");
			return null;
		});
		blade.app(App.class).listen(9001).start();
	}
}

Run it and point your browser to http://localhost:9001. There you go, you've just created your first Blade app!

OK, all this may seem simple, refer to the guidelines for use more ready-made examples for your reference:

Plan

  1. Improve the document
  2. Add the routing configuration way
  3. To develop personalized social applications
  4. Maintain and optimize the code

Update

update log

licenses

Blade Framework based on the Apache2 License

Contact

blade's People

Contributors

hellokaton avatar

Watchers

James Cloos avatar Code.Ai 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.